#include <ToppleUpdate.h>
Inherits UpdateModule, and CollideModuleInterface.
Static Public Member Functions | |
| static Int | getInterfaceMask () |
Static Public Member Functions inherited from UpdateModule | |
| static Int | getInterfaceMask () |
Static Public Member Functions inherited from BehaviorModule | |
| static Int | getInterfaceMask () |
| static ModuleType | getModuleType () |
Static Public Member Functions inherited from Module | |
| static ModuleData * | friend_newModuleData (INI *ini) |
Protected Types | |
| enum | ToppleState { TOPPLE_UPRIGHT = 0 , TOPPLE_FALLING , TOPPLE_DOWN } |
Protected Attributes | |
| Real | m_angularVelocity |
| Velocity in degrees per frame (or is it radians per frame?) | |
| Real | m_angularAcceleration |
| Acceleration angularVelocity is increasing. | |
| Coord3D | m_toppleDirection |
| Z-less direction we are toppling. | |
| ToppleState | m_toppleState |
| Stage this module is in. | |
| Real | m_angularAccumulation |
| How much have I rotated so I know when to bounce. | |
| Real | m_angleDeltaX |
| how much to modify x angle each frame | |
| Int | m_numAngleDeltaX |
| how many frames to tweak x angle | |
| Bool | m_doBounceFX |
| do the bounce FX if we do bounce | |
| UnsignedInt | m_options |
| topple options | |
| ObjectID | m_stumpID |
| stump generated, if any | |
Additional Inherited Members | |
Protected Member Functions inherited from UpdateModule | |
| void | setWakeFrame (Object *obj, UpdateSleepTime wakeDelay) |
| UpdateSleepTime | getWakeFrame () const |
| virtual SleepyUpdatePhase | getUpdatePhase () const |
| UpdateSleepTime | frameToSleepTime (UnsignedInt frame1, UnsignedInt frame2=FOREVER, UnsignedInt frame3=FOREVER, UnsignedInt frame4=FOREVER) |
Protected Member Functions inherited from BehaviorModule | |
| virtual void | crc (Xfer *xfer) |
| virtual void | xfer (Xfer *xfer) |
| virtual void | loadPostProcess (void) |
Protected Member Functions inherited from ObjectModule | |
| Object * | getObject () |
| const Object * | getObject () const |
Protected Member Functions inherited from Module | |
| const ModuleData * | getModuleData () const |
Protected Member Functions inherited from MemoryPoolObject | |
| virtual | ~MemoryPoolObject () |
| void * | operator new (size_t s) |
| void | operator delete (void *p) |
| virtual MemoryPool * | getObjectMemoryPool ()=0 |
Definition at line 77 of file ToppleUpdate.h.
|
protected |
| Enumerator | |
|---|---|
| TOPPLE_UPRIGHT | |
| TOPPLE_FALLING | |
| TOPPLE_DOWN | |
Definition at line 112 of file ToppleUpdate.h.
| ToppleUpdate::ToppleUpdate | ( | Thing * | thing, |
| const ModuleData * | moduleData ) |
Definition at line 105 of file ToppleUpdate.cpp.
| void ToppleUpdate::applyTopplingForce | ( | const Coord3D * | toppleDirection, |
| Real | toppleSpeed, | ||
| UnsignedInt | options ) |
< Start the toppling process by giving a force vector
Definition at line 142 of file ToppleUpdate.cpp.
|
inlinevirtual |
Reimplemented from BehaviorModule.
Definition at line 92 of file ToppleUpdate.h.
|
inlinestatic |
Definition at line 89 of file ToppleUpdate.h.
| Bool ToppleUpdate::isAbleToBeToppled | ( | ) | const |
< Ask if this module is able to be toppled
Definition at line 246 of file ToppleUpdate.cpp.
|
inlinevirtual |
Implements CollideModuleInterface.
Definition at line 105 of file ToppleUpdate.h.
|
inlinevirtual |
Implements CollideModuleInterface.
Definition at line 104 of file ToppleUpdate.h.
|
inlinevirtual |
Implements CollideModuleInterface.
Definition at line 106 of file ToppleUpdate.h.
|
inlinevirtual |
Implements CollideModuleInterface.
Definition at line 108 of file ToppleUpdate.h.
|
inlinevirtual |
Implements CollideModuleInterface.
Definition at line 107 of file ToppleUpdate.h.
|
virtual |
Do the collision
Implements CollideModuleInterface.
Definition at line 366 of file ToppleUpdate.cpp.
|
virtual |
< Keep track of rotational fall distance, bounce and/or stop when needed.
Implements UpdateModule.
Definition at line 268 of file ToppleUpdate.cpp.
this is used for things like pilots, to determine if they can "enter" something
Implements CollideModuleInterface.
Definition at line 103 of file ToppleUpdate.h.
|
protected |
how much to modify x angle each frame
Definition at line 124 of file ToppleUpdate.h.
|
protected |
Acceleration angularVelocity is increasing.
Definition at line 120 of file ToppleUpdate.h.
|
protected |
How much have I rotated so I know when to bounce.
Definition at line 123 of file ToppleUpdate.h.
|
protected |
Velocity in degrees per frame (or is it radians per frame?)
Definition at line 119 of file ToppleUpdate.h.
|
protected |
do the bounce FX if we do bounce
Definition at line 126 of file ToppleUpdate.h.
|
protected |
how many frames to tweak x angle
Definition at line 125 of file ToppleUpdate.h.
|
protected |
topple options
Definition at line 127 of file ToppleUpdate.h.
|
protected |
stump generated, if any
Definition at line 128 of file ToppleUpdate.h.
|
protected |
Z-less direction we are toppling.
Definition at line 121 of file ToppleUpdate.h.
|
protected |
Stage this module is in.
Definition at line 122 of file ToppleUpdate.h.