|
Public Types |
| NoLight = 0 |
| ConstantLight |
| PulsingLight |
| NumLightTypes |
enum | LightType {
NoLight = 0,
ConstantLight,
PulsingLight,
NumLightTypes
} |
Public Member Functions |
void | registerLights (LightManager *lightManager, bool lightingScene) |
| Traverses mounted objects and registers light sources with the light manager.
|
| DECLARE_CONOBJECT (Item) |
| Item () |
| ~Item () |
bool | onAdd () |
| Called when the object is added to the sim.
|
void | onRemove () |
| Called when the object is removed from the sim.
|
bool | onNewDataBlock (GameBaseData *dptr) |
| Called when a new datablock is set.
|
bool | isStatic () |
bool | isRotating () |
Point3F | getVelocity () const |
| Gets the velocity of the object.
|
void | setVelocity (const VectorF &vel) |
| Sets the velocity of this object.
|
void | applyImpulse (const Point3F &pos, const VectorF &vec) |
| Applies an impulse force to this object.
|
void | setCollisionTimeout (ShapeBase *obj) |
ShapeBase * | getCollisionObject () |
void | processTick (const Move *move) |
| Processes a move event and updates object state once every 32 milliseconds.
|
void | interpolateTick (F32 delta) |
| Interpolates between tick events.
|
void | setTransform (const MatrixF &mat) |
| Sets the Object -> World transform.
|
U32 | packUpdate (NetConnection *conn, U32 mask, BitStream *stream) |
| Instructs this object to pack its state for transfer over the network.
|
void | unpackUpdate (NetConnection *conn, BitStream *stream) |
| Instructs this object to read state data previously packed with packUpdate.
|
Static Public Member Functions |
static void | initPersistFields () |
| Register dynamic fields in a subclass of ConsoleObject.
|
static void | consoleInit () |
| Register global constant variables and do other one-time initialization tasks in a subclass of ConsoleObject.
|
Public Attributes |
Point3F | mStickyCollisionPos |
Point3F | mStickyCollisionNormal |
Private Types |
typedef ShapeBase | Parent |
| HiddenMask = Parent::NextFreeMask |
| ThrowSrcMask = Parent::NextFreeMask << 1 |
| PositionMask = Parent::NextFreeMask << 2 |
| RotationMask = Parent::NextFreeMask << 3 |
| NextFreeMask = Parent::NextFreeMask << 4 |
enum | MaskBits {
HiddenMask = Parent::NextFreeMask,
ThrowSrcMask = Parent::NextFreeMask << 1,
PositionMask = Parent::NextFreeMask << 2,
RotationMask = Parent::NextFreeMask << 3,
NextFreeMask = Parent::NextFreeMask << 4
} |
Private Member Functions |
void | updateVelocity (const F32 dt) |
void | updatePos (const U32 mask, const F32 dt) |
void | updateWorkingCollisionSet (const U32 mask, const F32 dt) |
bool | buildPolyList (AbstractPolyList *polyList, const Box3F &box, const SphereF &sphere) |
| Builds a polylist of the polygons in this object returns true if successful.
|
void | buildConvex (const Box3F &box, Convex *convex) |
| Builds a convex hull for this object.
|
void | onDeleteNotify (SimObject *) |
| Called when a SimObject is deleted.
|
bool | prepRenderImage (SceneState *state, const U32 stateKey, const U32 startZone, const bool modifyBaseZoneState) |
| Called when the SceneGraph is ready for the registration of RenderImages.
|
void | advanceTime (F32 dt) |
| Advances simulation time for animations.
|
Private Attributes |
StateDelta | delta |
ItemData * | mDataBlock |
| Datablock.
|
bool | mCollideable |
bool | mStatic |
bool | mRotate |
bool | mRotate2 |
VectorF | mVelocity |
bool | mAtRest |
S32 | mAtRestCounter |
bool | mInLiquid |
ShapeBase * | mCollisionObject |
U32 | mCollisionTimeout |
S32 | mDropTime |
LightInfo * | mLight |
OrthoBoxConvex | mConvex |
Box3F | mWorkingQueryBox |
Static Private Attributes |
static F32 | mGravity |
static const S32 | csmAtRestTimer |
Classes |
struct | StateDelta |