PhysicsShapeData
Engine/source/T3D/physics/physicsShape.h
Public Types
enum
SimType { SimType_ClientOnly SimType_ServerOnly SimType_ClientServer SimType_Bits = 3 }
Private Types
Parent
Public Attributes
The shared unscaled collision shape.
The shape to load.
Private Functions
_onResourceChanged(const Torque::Path & path)
Public Functions
Public Static Functions
Detailed Description
Public Types
SimType
Enumerator
- SimType_ClientOnly
This physics representation only exists on the client world and the server only does ghosting.
- SimType_ServerOnly
The physics representation only exists on the server world and the client gets delta updates for rendering.
- SimType_ClientServer
The physics representation exists on the client and the server worlds with corrections occuring when the client gets out of sync.
- SimType_Bits = 3
The bits used to pack the SimType field.
Private Types
typedef GameBaseData Parent
Public Attributes
F32 angularDamping
F32 angularSleepThreshold
F32 buoyancyDensity
PhysicsCollisionRef colShape
The shared unscaled collision shape.
SimObjectRef< PhysicsDebrisData > debris
SimObjectRef< PhysicsShapeData > destroyedShape
F32 dynamicFriction
SimObjectRef< ExplosionData > explosion
F32 linearDamping
F32 linearSleepThreshold
F32 mass
F32 restitution
Resource< TSShape > shape
The shape resource.
StringTableEntry shapeName
The shape to load.
enum PhysicsShapeData::SimType simType
F32 staticFriction
F32 waterDampingScale
Private Functions
_onResourceChanged(const Torque::Path & path)
Public Functions
PhysicsShapeData()
~PhysicsShapeData()
DECLARE_CONOBJECT(PhysicsShapeData )
onAdd()
Reimplemented from: GameBaseData
onRemove()
Reimplemented from: SimObject
packData(BitStream * stream)
Reimplemented from: SimDataBlock
preload(bool server, String & errorStr)
Reimplemented from: GameBaseData
unpackData(BitStream * stream)
Reimplemented from: GameBaseData