RigidShapeData Class Reference

#include <rigidShape.h>

Inheritance diagram for RigidShapeData:

Inheritance graph
[legend]
List of all members.

Public Types

 VC_NUM_DUST_EMITTERS = 1
 VC_NUM_BUBBLE_EMITTERS = 1
 VC_NUM_SPLASH_EMITTERS = 2
 VC_BUBBLE_EMITTER = VC_NUM_BUBBLE_EMITTERS
 ExitWater
 ImpactSoft
 ImpactMedium
 ImpactHard
 Wake
 MaxSounds
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
}

Public Member Functions

 RigidShapeData ()
 ~RigidShapeData ()
void packData (BitStream *)
void unpackData (BitStream *)
bool preload (bool server, String &errorStr)
 Called to prepare the datablock for use, after it has been unpacked.
 DECLARE_CONOBJECT (RigidShapeData)

Static Public Member Functions

static void initPersistFields ()
 Register dynamic fields in a subclass of ConsoleObject.

Public Attributes

RigidShapeData::Body body
SFXProfilewaterSound [MaxSounds]
F32 exitSplashSoundVel
F32 softSplashSoundVel
F32 medSplashSoundVel
F32 hardSplashSoundVel
F32 minImpactSpeed
F32 softImpactSpeed
F32 hardImpactSpeed
F32 minRollSpeed
bool cameraRoll
 Roll the 3rd party camera.
F32 cameraLag
 Amount of camera lag (lag += car velocity * lag).
F32 cameraDecay
 Rate at which camera returns to target pos.
F32 cameraOffset
 Vertical offset.
F32 minDrag
F32 maxDrag
S32 integration
 # of physics steps per tick
F32 collisionTol
 Collision distance tolerance.
F32 contactTol
 Contact velocity tolerance.
Point3F massCenter
 Center of mass for rigid body.
Point3F massBox
 Size of inertial box.
ParticleEmitterDatadustEmitter
S32 dustID
F32 triggerDustHeight
 height shape has to be under to kick up dust
F32 dustHeight
 dust height above ground
ParticleEmitterDatasplashEmitterList [VC_NUM_SPLASH_EMITTERS]
S32 splashEmitterIDList [VC_NUM_SPLASH_EMITTERS]
F32 splashFreqMod
F32 splashVelEpsilon
F32 dragForce
F32 vertFactor
F32 normalForce
F32 restorativeForce
F32 rollForce
F32 pitchForce
ParticleEmitterDatadustTrailEmitter
S32 dustTrailID
Point3F dustTrailOffset
F32 triggerTrailHeight
F32 dustTrailFreqMod

Protected Member Functions

bool onAdd ()
 Called when the object is added to the sim.

Private Types

typedef ShapeBaseData Parent

Classes

struct  Body

Member Typedef Documentation

Reimplemented from ShapeBaseData.


Member Enumeration Documentation

Enumerator:
VC_NUM_DUST_EMITTERS 
VC_NUM_BUBBLE_EMITTERS 
VC_NUM_SPLASH_EMITTERS 
VC_BUBBLE_EMITTER 

Enumerator:
ExitWater 
ImpactSoft 
ImpactMedium 
ImpactHard 
Wake 
MaxSounds 


Constructor & Destructor Documentation

RigidShapeData::RigidShapeData (  ) 

RigidShapeData::~RigidShapeData (  ) 


Member Function Documentation

bool RigidShapeData::onAdd (  )  [protected, virtual]

Called when the object is added to the sim.

Reimplemented from GameBaseData.

static void RigidShapeData::initPersistFields (  )  [static]

Register dynamic fields in a subclass of ConsoleObject.

See also:
addField(), addFieldV(), addDeprecatedField(), addGroup(), endGroup()

Reimplemented from ShapeBaseData.

void RigidShapeData::packData ( BitStream  )  [virtual]

Reimplemented from ShapeBaseData.

void RigidShapeData::unpackData ( BitStream  )  [virtual]

Reimplemented from ShapeBaseData.

bool RigidShapeData::preload ( bool  server,
String errorStr 
) [virtual]

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

Parameters:
server Set if we're running on the server (and therefore don't need to load things like textures or sounds).
errorStr If an error occurs in loading, this is set to a short string describing the error.
Returns:
True if all went well; false if something failed.
See also:
preload() and File Downloading

Reimplemented from ShapeBaseData.

RigidShapeData::DECLARE_CONOBJECT ( RigidShapeData   ) 


Member Data Documentation

Roll the 3rd party camera.

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

Rate at which camera returns to target pos.

# of physics steps per tick

Contact velocity tolerance.

Center of mass for rigid body.

Size of inertial box.

height shape has to be under to kick up dust

dust height above ground

S32 RigidShapeData::splashEmitterIDList[VC_NUM_SPLASH_EMITTERS]