Public Member Functions |
| CPhysics (CObject *object) |
void | DeleteObject (bool bAll=false) |
bool | EventProcess (const Event &event) |
void | SetBrain (CBrain *brain) |
void | SetMotion (CMotion *motion) |
void | SetType (PhysicsType type) |
PhysicsType | GetType () |
bool | Write (char *line) |
bool | Read (char *line) |
void | SetGravity (float value) |
float | GetGravity () |
float | GetFloorHeight () |
void | SetLinMotion (PhysicsMode mode, Math::Vector value) |
Math::Vector | GetLinMotion (PhysicsMode mode) |
void | SetLinMotionX (PhysicsMode mode, float value) |
void | SetLinMotionY (PhysicsMode mode, float value) |
void | SetLinMotionZ (PhysicsMode mode, float value) |
float | GetLinMotionX (PhysicsMode mode) |
float | GetLinMotionY (PhysicsMode mode) |
float | GetLinMotionZ (PhysicsMode mode) |
void | SetCirMotion (PhysicsMode mode, Math::Vector value) |
Math::Vector | GetCirMotion (PhysicsMode mode) |
void | SetCirMotionX (PhysicsMode mode, float value) |
void | SetCirMotionY (PhysicsMode mode, float value) |
void | SetCirMotionZ (PhysicsMode mode, float value) |
float | GetCirMotionX (PhysicsMode mode) |
float | GetCirMotionY (PhysicsMode mode) |
float | GetCirMotionZ (PhysicsMode mode) |
float | GetLinStopLength (PhysicsMode sMode=MO_ADVSPEED, PhysicsMode aMode=MO_STOACCEL) |
float | GetCirStopLength () |
float | GetLinMaxLength (float dir) |
float | GetLinTimeLength (float dist, float dir=1.0f) |
float | GetLinLength (float dist) |
void | SetMotor (bool bState) |
bool | GetMotor () |
void | SetLand (bool bState) |
bool | GetLand () |
void | SetSwim (bool bState) |
bool | GetSwim () |
void | SetCollision (bool bCollision) |
bool | GetCollision () |
void | SetFreeze (bool bFreeze) |
bool | GetFreeze () |
void | SetReactorRange (float range) |
float | GetReactorRange () |
void | SetMotorSpeed (Math::Vector speed) |
void | SetMotorSpeedX (float speed) |
void | SetMotorSpeedY (float speed) |
void | SetMotorSpeedZ (float speed) |
Math::Vector | GetMotorSpeed () |
float | GetMotorSpeedX () |
float | GetMotorSpeedY () |
float | GetMotorSpeedZ () |
void | CreateInterface (bool bSelect) |
Error | GetError () |
float | GetFallingHeight () |
void | SetMinFallingHeight (float value) |
float | GetMinFallingHeight () |
void | SetFallDamageFraction (float value) |
float | GetFallDamageFraction () |
Protected Member Functions |
bool | EventFrame (const Event &event) |
void | WaterFrame (float aTime, float rTime) |
void | SoundMotor (float rTime) |
void | SoundMotorFull (float rTime, ObjectType type) |
void | SoundMotorSlow (float rTime, ObjectType type) |
void | SoundMotorStop (float rTime, ObjectType type) |
void | SoundReactorFull (float rTime, ObjectType type) |
void | SoundReactorStop (float rTime, ObjectType type) |
void | FrameParticle (float aTime, float rTime) |
void | MotorUpdate (float aTime, float rTime) |
void | EffectUpdate (float aTime, float rTime) |
void | UpdateMotionStruct (float rTime, Motion &motion) |
void | FloorAdapt (float aTime, float rTime, Math::Vector &pos, Math::Vector &angle) |
void | FloorAngle (const Math::Vector &pos, Math::Vector &angle) |
int | ObjectAdapt (const Math::Vector &pos, const Math::Vector &angle) |
bool | JostleObject (CObject *pObj, Math::Vector iPos, float iRad, Math::Vector oPos, float oRad) |
bool | JostleObject (CObject *pObj, float force) |
bool | ExploOther (ObjectType iType, CObject *pObj, ObjectType oType, float force) |
int | ExploHimself (ObjectType iType, ObjectType oType, float force) |
void | PowerParticle (float factor, bool bBreak) |
void | CrashParticle (float crash) |
void | MotorParticle (float aTime, float rTime) |
void | WaterParticle (float aTime, Math::Vector pos, ObjectType type, float floor, float advance, float turn) |
void | WheelParticle (int color, float width) |
void | SetFalling () |