RigidShapeData
Engine/source/T3D/rigidShape.h
Classes:
Public Types
RigidShapeConsts { VC_NUM_DUST_EMITTERS = 1 VC_NUM_BUBBLE_EMITTERS = 1 VC_NUM_SPLASH_EMITTERS = 2 VC_BUBBLE_EMITTER = VC_NUM_BUBBLE_EMITTERS }
Sounds { ExitWater ImpactSoft ImpactMedium ImpactHard Wake MaxSounds }
Private Types
Parent
Public Attributes
struct RigidShapeData::Body
Rate at which camera returns to target pos.
Vertical offset.
bool
Roll the 3rd party camera.
Collision distance tolerance.
Contact velocity tolerance.
dust height above ground
bool
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
SFXTrack *
waterSound [MaxSounds]
Protected Functions
bool
onAdd()
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
unpackData(BitStream * )
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
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