Vehicle

Engine/source/T3D/vehicles/vehicle.h

More...

Rigid body methods

getCameraParameters(F32 * min, F32 * max, Point3F * offset, MatrixF * rot)

Gets the minimum viewing distance, maximum viewing distance, camera offsetand rotation for this object, if the world were to be viewed through its eyes.

Gets the camera to world space transform matrix.

Mounted objects

mountObject(SceneObject * obj, S32 node, const MatrixF & xfm)

ex: Mount B to A at A's node N A.mountObject( B, N )

Private Types

Parent 

Public Static Attributes

Protected Functions

ObjectRenderInst delegate hooked up in prepBatchRender if GameBase::gShowBoundingBox is true.

ObjectRenderInst delegate hooked up in prepBatchRender if GameBase::gShowBoundingBox is true.

bool
onNewDataBlock(GameBaseData * dptr, bool reload)

Called when a new datablock is set.

packUpdate(NetConnection * conn, U32 mask, BitStream * stream)

Instructs this object to pack its state for transfer over the network.

Read data written with writePacketData() and update the object state.

Instructs this object to read state data previously packed with packUpdate.

Update the physics.

Write state information necessary to perform client side prediction of an object.

Protected Static Functions

The callback used in by the checkTriggers() method.

Public Functions

Interpolates between move ticks.

bool

Called when the object is added to the sim.

Called when the object is removed from the sim.

prepBatchRender(SceneRenderState * state, S32 mountedImageIndex)

Used from ShapeBase::_prepRenderImage() to submit render instances for the main shape or its mounted elements.

Processes a move event and updates object state once every 32 milliseconds.

Public Static Functions

Detailed Description

Rigid body methods

getCameraParameters(F32 * min, F32 * max, Point3F * offset, MatrixF * rot)

Reimplemented from: RigidShape

getCameraTransform(F32 * pos, MatrixF * mat)

Reimplemented from: RigidShape

Mounted objects

mountObject(SceneObject * obj, S32 node, const MatrixF & xfm)

Reimplemented from: SceneObject

Private Types

typedef RigidShape Parent 

Protected Attributes

SimObjectPtr< ParticleEmitter > mDamageEmitterList [VehicleData::VC_NUM_DAMAGE_EMITTERS]
VehicleData * mDataBlock 
bool mJetting 
GFXStateBlockRef mSolidSB 
Point2F mSteering 
F32 mThrottle 
SFXSource * mWakeSound 

Public Static Attributes

ClippedPolyList * sPolyList 
S32 sVehicleCount 

Protected Functions

_renderMassAndContacts(ObjectRenderInst * ri, SceneRenderState * state, BaseMatInstance * overrideMat)

ObjectRenderInst delegate hooked up in prepBatchRender if GameBase::gShowBoundingBox is true.

_renderMuzzleVector(ObjectRenderInst * ri, SceneRenderState * state, BaseMatInstance * overrideMat)

ObjectRenderInst delegate hooked up in prepBatchRender if GameBase::gShowBoundingBox is true.

getCollisionMask()

Reimplemented by: FlyingVehicle, HoverVehicle, WheeledVehicle

onNewDataBlock(GameBaseData * dptr, bool reload)

Reimplemented from: RigidShape

Reimplemented by: FlyingVehicle, HoverVehicle, WheeledVehicle

packUpdate(NetConnection * conn, U32 mask, BitStream * stream)

Reimplemented from: RigidShape

Reimplemented by: WheeledVehicle

readPacketData(GameConnection * conn, BitStream * stream)

Reimplemented from: RigidShape

Reimplemented by: WheeledVehicle

unpackUpdate(NetConnection * conn, BitStream * stream)

Reimplemented from: RigidShape

Reimplemented by: WheeledVehicle

updateDamageSmoke(F32 dt)

updateForces(F32 dt)

Reimplemented by: WheeledVehicle, FlyingVehicle, HoverVehicle

updateFroth(F32 dt)

updateLiftoffDust(F32 dt)

updateMove(const Move * move)

Reimplemented by: FlyingVehicle, HoverVehicle, WheeledVehicle

updatePos(F32 dt)

Update the physics.

writePacketData(GameConnection * conn, BitStream * stream)

Reimplemented from: RigidShape

Reimplemented by: WheeledVehicle

Protected Static Functions

findCallback(SceneObject * obj, void * key)

The callback used in by the checkTriggers() method.

The checkTriggers method uses a container search which will invoke this callback on each obj that matches.

Public Functions

Vehicle()

advanceTime(F32 dt)

Reimplemented from: RigidShape

Reimplemented by: WheeledVehicle

DECLARE_CONOBJECT(Vehicle )

onAdd()

Reimplemented from: RigidShape

Reimplemented by: WheeledVehicle

onRemove()

Reimplemented from: RigidShape

Reimplemented by: WheeledVehicle

prepBatchRender(SceneRenderState * state, S32 mountedImageIndex)

Reimplemented from: RigidShape

Reimplemented by: WheeledVehicle

processTick(const Move * move)

Reimplemented from: RigidShape

Reimplemented by: WheeledVehicle

Public Static Functions

consoleInit()

initPersistFields()