RigidShapeData

Engine/source/T3D/rigidShape.h

More...

Classes:

Public Types

enum
RigidShapeConsts {
  VC_NUM_DUST_EMITTERS = 1
  VC_NUM_BUBBLE_EMITTERS = 1
  VC_NUM_SPLASH_EMITTERS = 2
  VC_BUBBLE_EMITTER = VC_NUM_BUBBLE_EMITTERS
}
enum
Sounds {
  ExitWater 
  ImpactSoft 
  ImpactMedium 
  ImpactHard 
  Wake 
  MaxSounds 
}

Private Types

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.

dust height above ground

Size of inertial box.

Center of mass for rigid body.

splashEmitterIDList [VC_NUM_SPLASH_EMITTERS]
splashEmitterList [VC_NUM_SPLASH_EMITTERS]

height shape has to be under to kick up dust

waterSound [MaxSounds]

Protected Functions

bool

Called when the object is added to the sim.

Public Functions

DECLARE_CALLBACK(void , onEnterLiquid , (RigidShape *obj, F32 coverage, const char *type) )
DECLARE_CALLBACK(void , onLeaveLiquid , (RigidShape *obj, const char *type) )
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

RigidShapeConsts

Enumerator

VC_NUM_DUST_EMITTERS = 1
VC_NUM_BUBBLE_EMITTERS = 1
VC_NUM_SPLASH_EMITTERS = 2
VC_BUBBLE_EMITTER = VC_NUM_BUBBLE_EMITTERS
Sounds

Enumerator

ExitWater
ImpactSoft
ImpactMedium
ImpactHard
Wake
MaxSounds

Private Types

typedef ShapeBaseData Parent 

Public Attributes

struct RigidShapeData::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 collisionTol 

Collision distance tolerance.

F32 contactTol 

Contact velocity tolerance.

F32 dragForce 
ParticleEmitterData * dustEmitter 
F32 dustHeight 

dust height above ground

S32 dustID 
ParticleEmitterData * dustTrailEmitter 
S32 dustTrailID 
bool enablePhysicsRep 
F32 exitSplashSoundVel 
F32 hardImpactSpeed 
F32 hardSplashSoundVel 
S32 integration 

of physics steps per tick

Point3F massBox 

Size of inertial box.

Point3F massCenter 

Center of mass for rigid body.

F32 maxDrag 
F32 medSplashSoundVel 
F32 minDrag 
F32 minImpactSpeed 
F32 minRollSpeed 
F32 softImpactSpeed 
F32 softSplashSoundVel 
S32 splashEmitterIDList [VC_NUM_SPLASH_EMITTERS]
ParticleEmitterData * splashEmitterList [VC_NUM_SPLASH_EMITTERS]
F32 splashFreqMod 
F32 splashVelEpsilon 
F32 triggerDustHeight 

height shape has to be under to kick up dust

F32 vertFactor 
SFXTrack * waterSound [MaxSounds]

Protected Functions

onAdd()

Reimplemented from: GameBaseData

Reimplemented by: HoverVehicleData

Public Functions

RigidShapeData()

~RigidShapeData()

DECLARE_CALLBACK(void , onEnterLiquid , (RigidShape *obj, F32 coverage, const char *type) )

DECLARE_CALLBACK(void , onLeaveLiquid , (RigidShape *obj, const char *type) )

DECLARE_CONOBJECT(RigidShapeData )

packData(BitStream * )

Reimplemented from: ShapeBaseData

Reimplemented by: HoverVehicleData, FlyingVehicleData, VehicleData, WheeledVehicleData

preload(bool server, String & errorStr)

Reimplemented from: ShapeBaseData

Reimplemented by: FlyingVehicleData, HoverVehicleData, VehicleData, WheeledVehicleData

unpackData(BitStream * )

Reimplemented from: ShapeBaseData

Reimplemented by: HoverVehicleData, FlyingVehicleData, VehicleData, WheeledVehicleData

Public Static Functions

initPersistFields()