VehicleData

Engine/source/T3D/vehicles/vehicle.h

More...

Classes:

Public Types

enum
Sounds {
  ExitWater 
  ImpactSoft 
  ImpactMedium 
  ImpactHard 
  Wake 
  MaxSounds 
}
enum
VehicleConsts {
  VC_NUM_DUST_EMITTERS = 1
  VC_NUM_DAMAGE_EMITTER_AREAS = 2
  VC_NUM_DAMAGE_LEVELS = 2
  VC_NUM_BUBBLE_EMITTERS = 1
  VC_NUM_DAMAGE_EMITTERS = VC_NUM_DAMAGE_LEVELS + VC_NUM_BUBBLE_EMITTERS
  VC_NUM_SPLASH_EMITTERS = 2
  VC_BUBBLE_EMITTER = VC_NUM_DAMAGE_EMITTERS - VC_NUM_BUBBLE_EMITTERS
}

Public Attributes

Rate at which camera returns to target pos.

Amount of camera lag (lag += car velocity * lag)

Vertical offset.

bool

Roll the 3rd party camera.

Collision distance tolerance.

Contact velocity tolerance.

damageEmitterIDList [VC_NUM_DAMAGE_EMITTERS]
damageEmitterList [VC_NUM_DAMAGE_EMITTERS]
damageEmitterOffset [VC_NUM_DAMAGE_EMITTER_AREAS]
damageLevelTolerance [VC_NUM_DAMAGE_LEVELS]

dust height above ground

Energy drain/tick.

Size of inertial box.

Center of mass for rigid body.

splashEmitterIDList [VC_NUM_SPLASH_EMITTERS]
splashEmitterList [VC_NUM_SPLASH_EMITTERS]

height vehicle has to be under to kick up dust

waterSound [MaxSounds]

Public Functions

bool
preload(bool server, String & errorStr)

Called to prepare the datablock for use, after it has been unpacked.

Public Static Functions

Detailed Description

Public Types

Sounds

Enumerator

ExitWater
ImpactSoft
ImpactMedium
ImpactHard
Wake
MaxSounds
VehicleConsts

Enumerator

VC_NUM_DUST_EMITTERS = 1
VC_NUM_DAMAGE_EMITTER_AREAS = 2
VC_NUM_DAMAGE_LEVELS = 2
VC_NUM_BUBBLE_EMITTERS = 1
VC_NUM_DAMAGE_EMITTERS = VC_NUM_DAMAGE_LEVELS + VC_NUM_BUBBLE_EMITTERS
VC_NUM_SPLASH_EMITTERS = 2
VC_BUBBLE_EMITTER = VC_NUM_DAMAGE_EMITTERS - VC_NUM_BUBBLE_EMITTERS
typedef RigidShapeData Parent 

Public Attributes

struct VehicleData::Body body 
F32 cameraDecay 

Rate at which camera returns to target pos.

F32 cameraLag 

Amount of camera lag (lag += car velocity * lag)

F32 cameraOffset 

Vertical offset.

bool cameraRoll 

Roll the 3rd party camera.

F32 collDamageMultiplier 
F32 collDamageThresholdVel 
F32 collisionTol 

Collision distance tolerance.

F32 contactTol 

Contact velocity tolerance.

S32 damageEmitterIDList [VC_NUM_DAMAGE_EMITTERS]
ParticleEmitterData * damageEmitterList [VC_NUM_DAMAGE_EMITTERS]
Point3F damageEmitterOffset [VC_NUM_DAMAGE_EMITTER_AREAS]
F32 damageLevelTolerance [VC_NUM_DAMAGE_LEVELS]
ParticleEmitterData * dustEmitter 
F32 dustHeight 

dust height above ground

S32 dustID 
bool enablePhysicsRep 
F32 exitSplashSoundVel 
F32 hardImpactSpeed 
F32 hardSplashSoundVel 
S32 integration 

of physics steps per tick

F32 jetEnergyDrain 

Energy drain/tick.

F32 jetForce 
Point3F massBox 

Size of inertial box.

Point3F massCenter 

Center of mass for rigid body.

F32 maxDrag 
F32 maxSteeringAngle 
F32 medSplashSoundVel 
F32 minDrag 
F32 minImpactSpeed 
F32 minJetEnergy 
F32 minRollSpeed 
F32 numDmgEmitterAreas 
bool powerSteering 
F32 softImpactSpeed 
F32 softSplashSoundVel 
S32 splashEmitterIDList [VC_NUM_SPLASH_EMITTERS]
ParticleEmitterData * splashEmitterList [VC_NUM_SPLASH_EMITTERS]
F32 splashFreqMod 
F32 splashVelEpsilon 
F32 steeringReturn 
F32 steeringReturnSpeedScale 
F32 triggerDustHeight 

height vehicle has to be under to kick up dust

SFXProfile * waterSound [MaxSounds]

Public Functions

VehicleData()

DECLARE_CONOBJECT(VehicleData )

packData(BitStream * stream)

Reimplemented from: RigidShapeData

Reimplemented by: HoverVehicleData, FlyingVehicleData, WheeledVehicleData

preload(bool server, String & errorStr)

Reimplemented from: RigidShapeData

Reimplemented by: WheeledVehicleData

unpackData(BitStream * stream)

Reimplemented from: RigidShapeData

Reimplemented by: HoverVehicleData, FlyingVehicleData, WheeledVehicleData

Public Static Functions

initPersistFields()