iRDS - Intelligent Race Driver System  V 2.1.0.5
 All Classes Namespaces Functions Variables Properties Events
IRDSCarDamage Class Reference
Inheritance diagram for IRDSCarDamage:

Public Member Functions

bool GetRepair ()
 Gets the repair. More...
 
void SetRepair (bool Value)
 Sets the repair. More...
 
float GetMaxMoveDelta ()
 Gets the max move delta. More...
 
void SetMaxMoveDelta (float Value)
 Sets the max move delta. More...
 
float GetMaxNoiseDeform ()
 Gets the max noise deform. More...
 
void SetMaxNoiseDeform (float Value)
 Sets the max noise deform. More...
 
float GetYForceDamp ()
 Gets the Y force damp. More...
 
void SetYForceDamp (float Value)
 Sets the Y force damp. More...
 
float GetDemolutionRange ()
 Gets the demolution range. More...
 
void SetDemolutionRange (float Value)
 Sets the demolution range. More...
 
float GetMaxRotationDelta ()
 Gets the max rotation delta. More...
 
void SetMaxRotationDelta (float Value)
 Sets the max rotation delta. More...
 
float GetMinForce ()
 Gets the minimum force. More...
 
void SetMinForce (float Value)
 Sets the minimum force. More...
 
float GetRepairDelta ()
 Gets the repair delta. More...
 
void SetRepairDelta (float Value)
 Sets the repair delta. More...
 
Transform GetOptionalMeshList ()
 Gets the optional mesh list. More...
 
void SetOptionalMeshList (Transform Value)
 Sets the optional mesh list. More...
 
MeshCollider[] GetOptionalColliderList ()
 Gets the optional collider list. More...
 
void SetOptionalColliderList (MeshCollider[] Value)
 Sets the optional collider list. More...
 
Transform[] GetOptionalTransformList ()
 Gets the optional transform list. More...
 
void SetOptionalTransformList (Transform[] Value)
 Sets the optional transform list. More...
 
void OnCollisionEnter (Collision collision)
 
void OnMeshForce (Mesh Meshes, Transform thisTransform, Vector3 originPos, Vector3 force, Vector3[] orgMesh)
 
void OnTransformForce (Transform thisTransform, ContactPoint[] originPos, Vector3 force, Vector3 orgTransformPosition, Vector3 orgTransformAngle)
 
bool onMeshRepair (Mesh Meshes, Transform thisTransform, Vector3[] orgMesh)
 
bool onTransformRepair (Transform thisTransform, Vector3 orgTransformPosition, Vector3 orgTransformAngle)
 

Public Attributes

ParticleEmitter sparksEmitter
 The sparks emitter. More...
 
float maxParticleSizeFactor = 5000
 The max particle size factor. More...
 
float maxParticleEnergyFactor = 5000
 The max particle energy factor. More...
 
float maxMaxEnergy = 0.75f
 The max max energy. More...
 
float maxMaxSize = 0.1f
 The size of the max max. More...
 
float sparksTime = 0.1f
 The sparks time. More...
 
float lastSparksTime = 0
 The last sparks time. More...
 
bool disableDamage = false
 The disable damage. More...
 
float totalDamage = 0f
 The total damage. More...
 
float sparksShurikenSpeedFactor = 5000f
 The sparks shuriken speed factor. More...
 
int minSparkShurikenParticles = 10
 The minimum spark shuriken particles. More...
 
int maxSparkShurikenParticles = 100
 The max spark shuriken particles. More...
 
ParticleSystem sparksShuriken
 The sparks shuriken. More...
 
LayerMask ignoreLayer
 The track layer. This is useful to avoid damager agains the track, also if you are using simple physics you need to add here the layer of the surfaces the car would normally drive on, to avoid performance drops since the car is dragged on its collider. More...
 

Member Function Documentation

float IRDSCarDamage.GetDemolutionRange ( )

Gets the demolution range.

Returns
The demolution range.
float IRDSCarDamage.GetMaxMoveDelta ( )

Gets the max move delta.

Returns
The max move delta.
float IRDSCarDamage.GetMaxNoiseDeform ( )

Gets the max noise deform.

Returns
The max noise deform.
float IRDSCarDamage.GetMaxRotationDelta ( )

Gets the max rotation delta.

Returns
The max rotation delta.
float IRDSCarDamage.GetMinForce ( )

Gets the minimum force.

Returns
The minimum force.
MeshCollider [] IRDSCarDamage.GetOptionalColliderList ( )

Gets the optional collider list.

Returns
The optional collider list.
Transform IRDSCarDamage.GetOptionalMeshList ( )

Gets the optional mesh list.

Returns
The optional mesh list.
Transform [] IRDSCarDamage.GetOptionalTransformList ( )

Gets the optional transform list.

Returns
The optional transform list.
bool IRDSCarDamage.GetRepair ( )

Gets the repair.

Returns
The if the car is repairing.
float IRDSCarDamage.GetRepairDelta ( )

Gets the repair delta.

Returns
The repair delta.
float IRDSCarDamage.GetYForceDamp ( )

Gets the Y force damp.

Returns
The Y force damp.
void IRDSCarDamage.SetDemolutionRange ( float  Value)

Sets the demolution range.

Parameters
ValueValue.
void IRDSCarDamage.SetMaxMoveDelta ( float  Value)

Sets the max move delta.

Parameters
ValueValue.
void IRDSCarDamage.SetMaxNoiseDeform ( float  Value)

Sets the max noise deform.

Parameters
ValueValue.
void IRDSCarDamage.SetMaxRotationDelta ( float  Value)

Sets the max rotation delta.

Parameters
ValueValue.
void IRDSCarDamage.SetMinForce ( float  Value)

Sets the minimum force.

Parameters
ValueValue.
void IRDSCarDamage.SetOptionalColliderList ( MeshCollider[]  Value)

Sets the optional collider list.

Parameters
ValueValue.
void IRDSCarDamage.SetOptionalMeshList ( Transform  Value)

Sets the optional mesh list.

Parameters
ValueValue.
void IRDSCarDamage.SetOptionalTransformList ( Transform[]  Value)

Sets the optional transform list.

Parameters
ValueValue.
void IRDSCarDamage.SetRepair ( bool  Value)

Sets the repair.

Parameters
ValueIf set to true value.
void IRDSCarDamage.SetRepairDelta ( float  Value)

Sets the repair delta.

Parameters
ValueValue.
void IRDSCarDamage.SetYForceDamp ( float  Value)

Sets the Y force damp.

Parameters
ValueValue.

Member Data Documentation

bool IRDSCarDamage.disableDamage = false

The disable damage.

LayerMask IRDSCarDamage.ignoreLayer

The track layer. This is useful to avoid damager agains the track, also if you are using simple physics you need to add here the layer of the surfaces the car would normally drive on, to avoid performance drops since the car is dragged on its collider.

float IRDSCarDamage.lastSparksTime = 0

The last sparks time.

float IRDSCarDamage.maxMaxEnergy = 0.75f

The max max energy.

float IRDSCarDamage.maxMaxSize = 0.1f

The size of the max max.

float IRDSCarDamage.maxParticleEnergyFactor = 5000

The max particle energy factor.

float IRDSCarDamage.maxParticleSizeFactor = 5000

The max particle size factor.

int IRDSCarDamage.maxSparkShurikenParticles = 100

The max spark shuriken particles.

int IRDSCarDamage.minSparkShurikenParticles = 10

The minimum spark shuriken particles.

ParticleEmitter IRDSCarDamage.sparksEmitter

The sparks emitter.

ParticleSystem IRDSCarDamage.sparksShuriken

The sparks shuriken.

float IRDSCarDamage.sparksShurikenSpeedFactor = 5000f

The sparks shuriken speed factor.

float IRDSCarDamage.sparksTime = 0.1f

The sparks time.

float IRDSCarDamage.totalDamage = 0f

The total damage.