doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
idPhysics_AF Class Reference

#include <Physics_AF.h>

Inheritance diagram for idPhysics_AF:
idPhysics_Base idPhysics idClass

Public Member Functions

 CLASS_PROTOTYPE (idPhysics_AF)
 
 idPhysics_AF (void)
 
 ~idPhysics_AF (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
int AddBody (idAFBody *body)
 
void AddConstraint (idAFConstraint *constraint)
 
void AddFrameConstraint (idAFConstraint *constraint)
 
void ForceBodyId (idAFBody *body, int newId)
 
int GetBodyId (idAFBody *body) const
 
int GetBodyId (const char *bodyName) const
 
int GetConstraintId (idAFConstraint *constraint) const
 
int GetConstraintId (const char *constraintName) const
 
int GetNumBodies (void) const
 
int GetNumConstraints (void) const
 
idAFBodyGetBody (const char *bodyName) const
 
idAFBodyGetBody (const int id) const
 
idAFBodyGetMasterBody (void) const
 
idAFConstraintGetConstraint (const char *constraintName) const
 
idAFConstraintGetConstraint (const int id) const
 
void DeleteBody (const char *bodyName)
 
void DeleteBody (const int id)
 
void DeleteConstraint (const char *constraintName)
 
void DeleteConstraint (const int id)
 
int GetBodyContactConstraints (const int id, idAFConstraint_Contact *contacts[], int maxContacts) const
 
void SetDefaultFriction (float linear, float angular, float contact)
 
void SetSuspendSpeed (const idVec2 &velocity, const idVec2 &acceleration)
 
void SetSuspendTolerance (const float noMoveTime, const float translationTolerance, const float rotationTolerance)
 
void SetSuspendTime (const float minTime, const float maxTime)
 
void SetTimeScale (const float ts)
 
void SetTimeScaleRamp (const float start, const float end)
 
void SetJointFrictionScale (const float scale)
 
void SetJointFrictionDent (const float dent, const float start, const float end)
 
float GetJointFrictionScale (void) const
 
void SetContactFrictionScale (const float scale)
 
void SetContactFrictionDent (const float dent, const float start, const float end)
 
float GetContactFrictionScale (void) const
 
void SetCollision (const bool enable)
 
void SetSelfCollision (const bool enable)
 
void SetComeToRest (bool enable)
 
void SetChanged (void)
 
void EnableImpact (void)
 
void DisableImpact (void)
 
void LockWorldConstraints (const bool lock)
 
void SetForcePushable (const bool enable)
 
void UpdateClipModels (void)
 
void SetClipModel (idClipModel *model, float density, int id=0, bool freeOld=true)
 
idClipModelGetClipModel (int id=0) const
 
int GetNumClipModels (void) const
 
void SetMass (float mass, int id=-1)
 
float GetMass (int id=-1) const
 
void SetContents (int contents, int id=-1)
 
int GetContents (int id=-1) const
 
const idBoundsGetBounds (int id=-1) const
 
const idBoundsGetAbsBounds (int id=-1) const
 
bool Evaluate (int timeStepMSec, int endTimeMSec)
 
void UpdateTime (int endTimeMSec)
 
int GetTime (void) const
 
void GetImpactInfo (const int id, const idVec3 &point, impactInfo_t *info) const
 
void ApplyImpulse (const int id, const idVec3 &point, const idVec3 &impulse)
 
void AddForce (const int id, const idVec3 &point, const idVec3 &force)
 
bool IsAtRest (void) const
 
int GetRestStartTime (void) const
 
void Activate (void)
 
void PutToRest (void)
 
bool IsPushable (void) const
 
void SaveState (void)
 
void RestoreState (void)
 
void SetOrigin (const idVec3 &newOrigin, int id=-1)
 
void SetAxis (const idMat3 &newAxis, int id=-1)
 
void Translate (const idVec3 &translation, int id=-1)
 
void Rotate (const idRotation &rotation, int id=-1)
 
const idVec3GetOrigin (int id=0) const
 
const idMat3GetAxis (int id=0) const
 
void SetLinearVelocity (const idVec3 &newLinearVelocity, int id=0)
 
void SetAngularVelocity (const idVec3 &newAngularVelocity, int id=0)
 
const idVec3GetLinearVelocity (int id=0) const
 
const idVec3GetAngularVelocity (int id=0) const
 
void ClipTranslation (trace_t &results, const idVec3 &translation, const idClipModel *model) const
 
void ClipRotation (trace_t &results, const idRotation &rotation, const idClipModel *model) const
 
int ClipContents (const idClipModel *model) const
 
void DisableClip (void)
 
void EnableClip (void)
 
void UnlinkClip (void)
 
void LinkClip (void)
 
bool EvaluateContacts (void)
 
void SetPushed (int deltaTime)
 
const idVec3GetPushedLinearVelocity (const int id=0) const
 
const idVec3GetPushedAngularVelocity (const int id=0) const
 
void SetMaster (idEntity *master, const bool orientated=true)
 
void WriteToSnapshot (idBitMsgDelta &msg) const
 
void ReadFromSnapshot (const idBitMsgDelta &msg)
 
- Public Member Functions inherited from idPhysics_Base
 CLASS_PROTOTYPE (idPhysics_Base)
 
 idPhysics_Base (void)
 
 ~idPhysics_Base (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
void SetSelf (idEntity *e)
 
void SetClipModel (idClipModel *model, float density, int id=0, bool freeOld=true)
 
idClipModelGetClipModel (int id=0) const
 
int GetNumClipModels (void) const
 
void SetMass (float mass, int id=-1)
 
float GetMass (int id=-1) const
 
void SetContents (int contents, int id=-1)
 
int GetContents (int id=-1) const
 
void SetClipMask (int mask, int id=-1)
 
int GetClipMask (int id=-1) const
 
const idBoundsGetBounds (int id=-1) const
 
const idBoundsGetAbsBounds (int id=-1) const
 
bool Evaluate (int timeStepMSec, int endTimeMSec)
 
void UpdateTime (int endTimeMSec)
 
int GetTime (void) const
 
void GetImpactInfo (const int id, const idVec3 &point, impactInfo_t *info) const
 
void ApplyImpulse (const int id, const idVec3 &point, const idVec3 &impulse)
 
void AddForce (const int id, const idVec3 &point, const idVec3 &force)
 
void Activate (void)
 
void PutToRest (void)
 
bool IsAtRest (void) const
 
int GetRestStartTime (void) const
 
bool IsPushable (void) const
 
void SaveState (void)
 
void RestoreState (void)
 
void SetOrigin (const idVec3 &newOrigin, int id=-1)
 
void SetAxis (const idMat3 &newAxis, int id=-1)
 
void Translate (const idVec3 &translation, int id=-1)
 
void Rotate (const idRotation &rotation, int id=-1)
 
const idVec3GetOrigin (int id=0) const
 
const idMat3GetAxis (int id=0) const
 
void SetLinearVelocity (const idVec3 &newLinearVelocity, int id=0)
 
void SetAngularVelocity (const idVec3 &newAngularVelocity, int id=0)
 
const idVec3GetLinearVelocity (int id=0) const
 
const idVec3GetAngularVelocity (int id=0) const
 
void SetGravity (const idVec3 &newGravity)
 
const idVec3GetGravity (void) const
 
const idVec3GetGravityNormal (void) const
 
void ClipTranslation (trace_t &results, const idVec3 &translation, const idClipModel *model) const
 
void ClipRotation (trace_t &results, const idRotation &rotation, const idClipModel *model) const
 
int ClipContents (const idClipModel *model) const
 
void DisableClip (void)
 
void EnableClip (void)
 
void UnlinkClip (void)
 
void LinkClip (void)
 
bool EvaluateContacts (void)
 
int GetNumContacts (void) const
 
const contactInfo_tGetContact (int num) const
 
void ClearContacts (void)
 
void AddContactEntity (idEntity *e)
 
void RemoveContactEntity (idEntity *e)
 
bool HasGroundContacts (void) const
 
bool IsGroundEntity (int entityNum) const
 
bool IsGroundClipModel (int entityNum, int id) const
 
void SetPushed (int deltaTime)
 
const idVec3GetPushedLinearVelocity (const int id=0) const
 
const idVec3GetPushedAngularVelocity (const int id=0) const
 
void SetMaster (idEntity *master, const bool orientated=true)
 
const trace_tGetBlockingInfo (void) const
 
idEntityGetBlockingEntity (void) const
 
int GetLinearEndTime (void) const
 
int GetAngularEndTime (void) const
 
void WriteToSnapshot (idBitMsgDelta &msg) const
 
void ReadFromSnapshot (const idBitMsgDelta &msg)
 
- Public Member Functions inherited from idPhysics
 ABSTRACT_PROTOTYPE (idPhysics)
 
virtual ~idPhysics (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
virtual void SetClipBox (const idBounds &bounds, float density)
 
- Public Member Functions inherited from idClass
 ABSTRACT_PROTOTYPE (idClass)
 
voidoperator new (size_t)
 
voidoperator new (size_t s, int, int, char *, int)
 
void operator delete (void *)
 
void operator delete (void *, int, int, char *, int)
 
virtual ~idClass ()
 
void Spawn (void)
 
void CallSpawn (void)
 
bool IsType (const idTypeInfo &c) const
 
const char * GetClassname (void) const
 
const char * GetSuperclass (void) const
 
void FindUninitializedMemory (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
bool RespondsTo (const idEventDef &ev) const
 
bool PostEventMS (const idEventDef *ev, int time)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7, idEventArg arg8)
 
bool PostEventSec (const idEventDef *ev, float time)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7, idEventArg arg8)
 
bool ProcessEvent (const idEventDef *ev)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7, idEventArg arg8)
 
bool ProcessEventArgPtr (const idEventDef *ev, int *data)
 
void CancelEvents (const idEventDef *ev)
 
void Event_Remove (void)
 

Private Member Functions

void BuildTrees (void)
 
bool IsClosedLoop (const idAFBody *body1, const idAFBody *body2) const
 
void PrimaryFactor (void)
 
void EvaluateBodies (float timeStep)
 
void EvaluateConstraints (float timeStep)
 
void AddFrameConstraints (void)
 
void RemoveFrameConstraints (void)
 
void ApplyFriction (float timeStep, float endTimeMSec)
 
void PrimaryForces (float timeStep)
 
void AuxiliaryForces (float timeStep)
 
void VerifyContactConstraints (void)
 
void SetupContactConstraints (void)
 
void ApplyContactForces (void)
 
void Evolve (float timeStep)
 
idEntitySetupCollisionForBody (idAFBody *body) const
 
bool CollisionImpulse (float timeStep, idAFBody *body, trace_t &collision)
 
bool ApplyCollisions (float timeStep)
 
void CheckForCollisions (float timeStep)
 
void ClearExternalForce (void)
 
void AddGravity (void)
 
void SwapStates (void)
 
bool TestIfAtRest (float timeStep)
 
void Rest (void)
 
void AddPushVelocity (const idVec6 &pushVelocity)
 
void DebugDraw (void)
 

Private Attributes

idList< idAFTree * > trees
 
idList< idAFBody * > bodies
 
idList< idAFConstraint * > constraints
 
idList< idAFConstraint * > primaryConstraints
 
idList< idAFConstraint * > auxiliaryConstraints
 
idList< idAFConstraint * > frameConstraints
 
idList< idAFConstraint_Contact * > contactConstraints
 
idList< intcontactBodies
 
idList< AFCollision_tcollisions
 
bool changedAF
 
float linearFriction
 
float angularFriction
 
float contactFriction
 
float bouncyness
 
float totalMass
 
float forceTotalMass
 
idVec2 suspendVelocity
 
idVec2 suspendAcceleration
 
float noMoveTime
 
float noMoveTranslation
 
float noMoveRotation
 
float minMoveTime
 
float maxMoveTime
 
float impulseThreshold
 
float timeScale
 
float timeScaleRampStart
 
float timeScaleRampEnd
 
float jointFrictionScale
 
float jointFrictionDent
 
float jointFrictionDentStart
 
float jointFrictionDentEnd
 
float jointFrictionDentScale
 
float contactFrictionScale
 
float contactFrictionDent
 
float contactFrictionDentStart
 
float contactFrictionDentEnd
 
float contactFrictionDentScale
 
bool enableCollision
 
bool selfCollision
 
bool comeToRest
 
bool linearTime
 
bool noImpact
 
bool worldConstraintsLocked
 
bool forcePushable
 
AFPState_t current
 
AFPState_t saved
 
idAFBodymasterBody
 
idLCPlcp
 

Additional Inherited Members

- Static Public Member Functions inherited from idPhysics
static int SnapTimeToPhysicsFrame (int t)
 
- Static Public Member Functions inherited from idClass
static void Init (void)
 
static void Shutdown (void)
 
static idTypeInfoGetClass (const char *name)
 
static void DisplayInfo_f (const idCmdArgs &args)
 
static void ListClasses_f (const idCmdArgs &args)
 
static idClassCreateInstance (const char *name)
 
static int GetNumTypes (void)
 
static int GetTypeNumBits (void)
 
static idTypeInfoGetType (int num)
 
- Protected Member Functions inherited from idPhysics_Base
void AddGroundContacts (const idClipModel *clipModel)
 
void AddContactEntitiesForContacts (void)
 
void ActivateContactEntities (void)
 
bool IsOutsideWorld (void) const
 
void DrawVelocity (int id, float linearScale, float angularScale) const
 
- Protected Attributes inherited from idPhysics_Base
idEntityself
 
int clipMask
 
idVec3 gravityVector
 
idVec3 gravityNormal
 
idList< contactInfo_tcontacts
 
idList< contactEntity_tcontactEntities
 

Detailed Description

Definition at line 812 of file Physics_AF.h.

Constructor & Destructor Documentation

idPhysics_AF::idPhysics_AF ( void  )

Definition at line 6588 of file Physics_AF.cpp.

idPhysics_AF::~idPhysics_AF ( void  )

Definition at line 6657 of file Physics_AF.cpp.

Member Function Documentation

void idPhysics_AF::Activate ( void  )
virtual

Implements idPhysics.

Definition at line 6007 of file Physics_AF.cpp.

int idPhysics_AF::AddBody ( idAFBody body)

Definition at line 7001 of file Physics_AF.cpp.

void idPhysics_AF::AddConstraint ( idAFConstraint constraint)

Definition at line 7042 of file Physics_AF.cpp.

void idPhysics_AF::AddForce ( const int  id,
const idVec3 point,
const idVec3 force 
)
virtual

Implements idPhysics.

Definition at line 7425 of file Physics_AF.cpp.

void idPhysics_AF::AddFrameConstraint ( idAFConstraint constraint)

Definition at line 7074 of file Physics_AF.cpp.

void idPhysics_AF::AddFrameConstraints ( void  )
private

Definition at line 4946 of file Physics_AF.cpp.

void idPhysics_AF::AddGravity ( void  )
private

Definition at line 5760 of file Physics_AF.cpp.

void idPhysics_AF::AddPushVelocity ( const idVec6 pushVelocity)
private

Definition at line 6055 of file Physics_AF.cpp.

bool idPhysics_AF::ApplyCollisions ( float  timeStep)
private

Definition at line 5447 of file Physics_AF.cpp.

void idPhysics_AF::ApplyContactForces ( void  )
private

Definition at line 5716 of file Physics_AF.cpp.

void idPhysics_AF::ApplyFriction ( float  timeStep,
float  endTimeMSec 
)
private

Definition at line 4971 of file Physics_AF.cpp.

void idPhysics_AF::ApplyImpulse ( const int  id,
const idVec3 point,
const idVec3 impulse 
)
virtual

Implements idPhysics.

Definition at line 7407 of file Physics_AF.cpp.

void idPhysics_AF::AuxiliaryForces ( float  timeStep)
private

Definition at line 5045 of file Physics_AF.cpp.

void idPhysics_AF::BuildTrees ( void  )
private

Definition at line 6878 of file Physics_AF.cpp.

void idPhysics_AF::CheckForCollisions ( float  timeStep)
private

Definition at line 5538 of file Physics_AF.cpp.

idPhysics_AF::CLASS_PROTOTYPE ( idPhysics_AF  )
void idPhysics_AF::ClearExternalForce ( void  )
private

Definition at line 5742 of file Physics_AF.cpp.

int idPhysics_AF::ClipContents ( const idClipModel model) const
virtual

Implements idPhysics.

Definition at line 7745 of file Physics_AF.cpp.

void idPhysics_AF::ClipRotation ( trace_t results,
const idRotation rotation,
const idClipModel model 
) const
virtual

Implements idPhysics.

Definition at line 7708 of file Physics_AF.cpp.

void idPhysics_AF::ClipTranslation ( trace_t results,
const idVec3 translation,
const idClipModel model 
) const
virtual

Implements idPhysics.

Definition at line 7673 of file Physics_AF.cpp.

bool idPhysics_AF::CollisionImpulse ( float  timeStep,
idAFBody body,
trace_t collision 
)
private

Definition at line 5403 of file Physics_AF.cpp.

void idPhysics_AF::DebugDraw ( void  )
private

Definition at line 6454 of file Physics_AF.cpp.

void idPhysics_AF::DeleteBody ( const char *  bodyName)

Definition at line 7246 of file Physics_AF.cpp.

void idPhysics_AF::DeleteBody ( const int  id)

Definition at line 7270 of file Physics_AF.cpp.

void idPhysics_AF::DeleteConstraint ( const char *  constraintName)

Definition at line 7304 of file Physics_AF.cpp.

void idPhysics_AF::DeleteConstraint ( const int  id)

Definition at line 7328 of file Physics_AF.cpp.

void idPhysics_AF::DisableClip ( void  )
virtual

Implements idPhysics.

Definition at line 7775 of file Physics_AF.cpp.

void idPhysics_AF::DisableImpact ( void  )

Definition at line 6046 of file Physics_AF.cpp.

void idPhysics_AF::EnableClip ( void  )
virtual

Implements idPhysics.

Definition at line 7788 of file Physics_AF.cpp.

void idPhysics_AF::EnableImpact ( void  )

Definition at line 6037 of file Physics_AF.cpp.

bool idPhysics_AF::Evaluate ( int  timeStepMSec,
int  endTimeMSec 
)
virtual

Implements idPhysics.

Definition at line 6217 of file Physics_AF.cpp.

void idPhysics_AF::EvaluateBodies ( float  timeStep)
private

Definition at line 4899 of file Physics_AF.cpp.

void idPhysics_AF::EvaluateConstraints ( float  timeStep)
private

Definition at line 4861 of file Physics_AF.cpp.

bool idPhysics_AF::EvaluateContacts ( void  )
virtual

Implements idPhysics.

Definition at line 5607 of file Physics_AF.cpp.

void idPhysics_AF::Evolve ( float  timeStep)
private

Definition at line 5332 of file Physics_AF.cpp.

void idPhysics_AF::ForceBodyId ( idAFBody body,
int  newId 
)

Definition at line 7084 of file Physics_AF.cpp.

const idBounds & idPhysics_AF::GetAbsBounds ( int  id = -1) const
virtual

Implements idPhysics.

Definition at line 6192 of file Physics_AF.cpp.

const idVec3 & idPhysics_AF::GetAngularVelocity ( int  id = 0) const
virtual

Implements idPhysics.

Definition at line 7659 of file Physics_AF.cpp.

const idMat3 & idPhysics_AF::GetAxis ( int  id = 0) const
virtual

Implements idPhysics.

Definition at line 7605 of file Physics_AF.cpp.

idAFBody * idPhysics_AF::GetBody ( const char *  bodyName) const

Definition at line 7186 of file Physics_AF.cpp.

idAFBody * idPhysics_AF::GetBody ( const int  id) const

Definition at line 7203 of file Physics_AF.cpp.

int idPhysics_AF::GetBodyContactConstraints ( const int  id,
idAFConstraint_Contact contacts[],
int  maxContacts 
) const

Definition at line 7347 of file Physics_AF.cpp.

int idPhysics_AF::GetBodyId ( idAFBody body) const

Definition at line 7104 of file Physics_AF.cpp.

int idPhysics_AF::GetBodyId ( const char *  bodyName) const

Definition at line 7119 of file Physics_AF.cpp.

const idBounds & idPhysics_AF::GetBounds ( int  id = -1) const
virtual

Implements idPhysics.

Definition at line 6163 of file Physics_AF.cpp.

idClipModel * idPhysics_AF::GetClipModel ( int  id = 0) const
virtual

Implements idPhysics.

Definition at line 6078 of file Physics_AF.cpp.

idAFConstraint * idPhysics_AF::GetConstraint ( const char *  constraintName) const

Definition at line 7216 of file Physics_AF.cpp.

idAFConstraint * idPhysics_AF::GetConstraint ( const int  id) const

Definition at line 7233 of file Physics_AF.cpp.

int idPhysics_AF::GetConstraintId ( idAFConstraint constraint) const

Definition at line 7136 of file Physics_AF.cpp.

int idPhysics_AF::GetConstraintId ( const char *  constraintName) const

Definition at line 7151 of file Physics_AF.cpp.

float idPhysics_AF::GetContactFrictionScale ( void  ) const

Definition at line 5891 of file Physics_AF.cpp.

int idPhysics_AF::GetContents ( int  id = -1) const
virtual

Implements idPhysics.

Definition at line 6143 of file Physics_AF.cpp.

void idPhysics_AF::GetImpactInfo ( const int  id,
const idVec3 point,
impactInfo_t info 
) const
virtual

Implements idPhysics.

Definition at line 7391 of file Physics_AF.cpp.

float idPhysics_AF::GetJointFrictionScale ( void  ) const

Definition at line 5864 of file Physics_AF.cpp.

const idVec3 & idPhysics_AF::GetLinearVelocity ( int  id = 0) const
virtual

Implements idPhysics.

Definition at line 7645 of file Physics_AF.cpp.

float idPhysics_AF::GetMass ( int  id = -1) const
virtual

Implements idPhysics.

Definition at line 6113 of file Physics_AF.cpp.

idAFBody* idPhysics_AF::GetMasterBody ( void  ) const
inline

Definition at line 840 of file Physics_AF.h.

int idPhysics_AF::GetNumBodies ( void  ) const

Definition at line 7168 of file Physics_AF.cpp.

int idPhysics_AF::GetNumClipModels ( void  ) const
virtual

Implements idPhysics.

Definition at line 6090 of file Physics_AF.cpp.

int idPhysics_AF::GetNumConstraints ( void  ) const

Definition at line 7177 of file Physics_AF.cpp.

const idVec3 & idPhysics_AF::GetOrigin ( int  id = 0) const
virtual

Implements idPhysics.

Definition at line 7591 of file Physics_AF.cpp.

const idVec3 & idPhysics_AF::GetPushedAngularVelocity ( const int  id = 0) const
virtual

Implements idPhysics.

Definition at line 7851 of file Physics_AF.cpp.

const idVec3 & idPhysics_AF::GetPushedLinearVelocity ( const int  id = 0) const
virtual

Implements idPhysics.

Definition at line 7842 of file Physics_AF.cpp.

int idPhysics_AF::GetRestStartTime ( void  ) const
virtual

Implements idPhysics.

Definition at line 7451 of file Physics_AF.cpp.

int idPhysics_AF::GetTime ( void  ) const
virtual

Implements idPhysics.

Definition at line 6424 of file Physics_AF.cpp.

bool idPhysics_AF::IsAtRest ( void  ) const
virtual

Implements idPhysics.

Definition at line 7442 of file Physics_AF.cpp.

bool idPhysics_AF::IsClosedLoop ( const idAFBody body1,
const idAFBody body2 
) const
private

Definition at line 6863 of file Physics_AF.cpp.

bool idPhysics_AF::IsPushable ( void  ) const
virtual

Implements idPhysics.

Definition at line 7460 of file Physics_AF.cpp.

void idPhysics_AF::LinkClip ( void  )
virtual

Implements idPhysics.

Definition at line 7814 of file Physics_AF.cpp.

void idPhysics_AF::LockWorldConstraints ( const bool  lock)
inline

Definition at line 886 of file Physics_AF.h.

void idPhysics_AF::PrimaryFactor ( void  )
private

Definition at line 5019 of file Physics_AF.cpp.

void idPhysics_AF::PrimaryForces ( float  timeStep)
private

Definition at line 5032 of file Physics_AF.cpp.

void idPhysics_AF::PutToRest ( void  )
virtual

Implements idPhysics.

Definition at line 6028 of file Physics_AF.cpp.

void idPhysics_AF::ReadFromSnapshot ( const idBitMsgDelta msg)
virtual

Implements idPhysics.

Definition at line 7964 of file Physics_AF.cpp.

void idPhysics_AF::RemoveFrameConstraints ( void  )
private

Definition at line 4960 of file Physics_AF.cpp.

void idPhysics_AF::Rest ( void  )
private

Definition at line 5989 of file Physics_AF.cpp.

void idPhysics_AF::Restore ( idRestoreGame savefile)

Definition at line 6785 of file Physics_AF.cpp.

void idPhysics_AF::RestoreState ( void  )
virtual

Implements idPhysics.

Definition at line 7484 of file Physics_AF.cpp.

void idPhysics_AF::Rotate ( const idRotation rotation,
int  id = -1 
)
virtual

Implements idPhysics.

Definition at line 7562 of file Physics_AF.cpp.

void idPhysics_AF::Save ( idSaveGame savefile) const

Definition at line 6713 of file Physics_AF.cpp.

void idPhysics_AF::SaveState ( void  )
virtual

Implements idPhysics.

Definition at line 7469 of file Physics_AF.cpp.

void idPhysics_AF::SetAngularVelocity ( const idVec3 newAngularVelocity,
int  id = 0 
)
virtual

Implements idPhysics.

Definition at line 7632 of file Physics_AF.cpp.

void idPhysics_AF::SetAxis ( const idMat3 newAxis,
int  id = -1 
)
virtual

Implements idPhysics.

Definition at line 7514 of file Physics_AF.cpp.

void idPhysics_AF::SetChanged ( void  )
inline

Definition at line 881 of file Physics_AF.h.

void idPhysics_AF::SetClipModel ( idClipModel model,
float  density,
int  id = 0,
bool  freeOld = true 
)
virtual

Implements idPhysics.

Definition at line 6070 of file Physics_AF.cpp.

void idPhysics_AF::SetCollision ( const bool  enable)
inline

Definition at line 875 of file Physics_AF.h.

void idPhysics_AF::SetComeToRest ( bool  enable)
inline

Definition at line 879 of file Physics_AF.h.

void idPhysics_AF::SetContactFrictionDent ( const float  dent,
const float  start,
const float  end 
)

Definition at line 5880 of file Physics_AF.cpp.

void idPhysics_AF::SetContactFrictionScale ( const float  scale)
inline

Definition at line 869 of file Physics_AF.h.

void idPhysics_AF::SetContents ( int  contents,
int  id = -1 
)
virtual

Implements idPhysics.

Definition at line 6125 of file Physics_AF.cpp.

void idPhysics_AF::SetDefaultFriction ( float  linear,
float  angular,
float  contact 
)

Definition at line 7375 of file Physics_AF.cpp.

void idPhysics_AF::SetForcePushable ( const bool  enable)
inline

Definition at line 888 of file Physics_AF.h.

void idPhysics_AF::SetJointFrictionDent ( const float  dent,
const float  start,
const float  end 
)

Definition at line 5853 of file Physics_AF.cpp.

void idPhysics_AF::SetJointFrictionScale ( const float  scale)
inline

Definition at line 863 of file Physics_AF.h.

void idPhysics_AF::SetLinearVelocity ( const idVec3 newLinearVelocity,
int  id = 0 
)
virtual

Implements idPhysics.

Definition at line 7619 of file Physics_AF.cpp.

void idPhysics_AF::SetMass ( float  mass,
int  id = -1 
)
virtual

Implements idPhysics.

Definition at line 6099 of file Physics_AF.cpp.

void idPhysics_AF::SetMaster ( idEntity master,
const bool  orientated = true 
)
virtual

Implements idPhysics.

Definition at line 7862 of file Physics_AF.cpp.

void idPhysics_AF::SetOrigin ( const idVec3 newOrigin,
int  id = -1 
)
virtual

Implements idPhysics.

Definition at line 7501 of file Physics_AF.cpp.

void idPhysics_AF::SetPushed ( int  deltaTime)
virtual

Implements idPhysics.

Definition at line 7823 of file Physics_AF.cpp.

void idPhysics_AF::SetSelfCollision ( const bool  enable)
inline

Definition at line 877 of file Physics_AF.h.

void idPhysics_AF::SetSuspendSpeed ( const idVec2 velocity,
const idVec2 acceleration 
)

Definition at line 5812 of file Physics_AF.cpp.

void idPhysics_AF::SetSuspendTime ( const float  minTime,
const float  maxTime 
)

Definition at line 5822 of file Physics_AF.cpp.

void idPhysics_AF::SetSuspendTolerance ( const float  noMoveTime,
const float  translationTolerance,
const float  rotationTolerance 
)

Definition at line 5832 of file Physics_AF.cpp.

void idPhysics_AF::SetTimeScale ( const float  ts)
inline

Definition at line 859 of file Physics_AF.h.

void idPhysics_AF::SetTimeScaleRamp ( const float  start,
const float  end 
)

Definition at line 5843 of file Physics_AF.cpp.

idEntity * idPhysics_AF::SetupCollisionForBody ( idAFBody body) const
private

Definition at line 5463 of file Physics_AF.cpp.

void idPhysics_AF::SetupContactConstraints ( void  )
private

Definition at line 5691 of file Physics_AF.cpp.

void idPhysics_AF::SwapStates ( void  )
private

Definition at line 5776 of file Physics_AF.cpp.

bool idPhysics_AF::TestIfAtRest ( float  timeStep)
private

Definition at line 5907 of file Physics_AF.cpp.

void idPhysics_AF::Translate ( const idVec3 translation,
int  id = -1 
)
virtual

Implements idPhysics.

Definition at line 7534 of file Physics_AF.cpp.

void idPhysics_AF::UnlinkClip ( void  )
virtual

Implements idPhysics.

Definition at line 7801 of file Physics_AF.cpp.

void idPhysics_AF::UpdateClipModels ( void  )

Definition at line 5797 of file Physics_AF.cpp.

void idPhysics_AF::UpdateTime ( int  endTimeMSec)
virtual

Implements idPhysics.

Definition at line 6416 of file Physics_AF.cpp.

void idPhysics_AF::VerifyContactConstraints ( void  )
private

Definition at line 5272 of file Physics_AF.cpp.

void idPhysics_AF::WriteToSnapshot ( idBitMsgDelta msg) const
virtual

Implements idPhysics.

Definition at line 7917 of file Physics_AF.cpp.

Member Data Documentation

float idPhysics_AF::angularFriction
private

Definition at line 973 of file Physics_AF.h.

idList<idAFConstraint *> idPhysics_AF::auxiliaryConstraints
private

Definition at line 964 of file Physics_AF.h.

idList<idAFBody *> idPhysics_AF::bodies
private

Definition at line 961 of file Physics_AF.h.

float idPhysics_AF::bouncyness
private

Definition at line 975 of file Physics_AF.h.

bool idPhysics_AF::changedAF
private

Definition at line 969 of file Physics_AF.h.

idList<AFCollision_t> idPhysics_AF::collisions
private

Definition at line 968 of file Physics_AF.h.

bool idPhysics_AF::comeToRest
private

Definition at line 1006 of file Physics_AF.h.

idList<idAFConstraint *> idPhysics_AF::constraints
private

Definition at line 962 of file Physics_AF.h.

idList<int> idPhysics_AF::contactBodies
private

Definition at line 967 of file Physics_AF.h.

idList<idAFConstraint_Contact *> idPhysics_AF::contactConstraints
private

Definition at line 966 of file Physics_AF.h.

float idPhysics_AF::contactFriction
private

Definition at line 974 of file Physics_AF.h.

float idPhysics_AF::contactFrictionDent
private

Definition at line 999 of file Physics_AF.h.

float idPhysics_AF::contactFrictionDentEnd
private

Definition at line 1001 of file Physics_AF.h.

float idPhysics_AF::contactFrictionDentScale
private

Definition at line 1002 of file Physics_AF.h.

float idPhysics_AF::contactFrictionDentStart
private

Definition at line 1000 of file Physics_AF.h.

float idPhysics_AF::contactFrictionScale
private

Definition at line 998 of file Physics_AF.h.

AFPState_t idPhysics_AF::current
private

Definition at line 1013 of file Physics_AF.h.

bool idPhysics_AF::enableCollision
private

Definition at line 1004 of file Physics_AF.h.

bool idPhysics_AF::forcePushable
private

Definition at line 1010 of file Physics_AF.h.

float idPhysics_AF::forceTotalMass
private

Definition at line 977 of file Physics_AF.h.

idList<idAFConstraint *> idPhysics_AF::frameConstraints
private

Definition at line 965 of file Physics_AF.h.

float idPhysics_AF::impulseThreshold
private

Definition at line 986 of file Physics_AF.h.

float idPhysics_AF::jointFrictionDent
private

Definition at line 993 of file Physics_AF.h.

float idPhysics_AF::jointFrictionDentEnd
private

Definition at line 995 of file Physics_AF.h.

float idPhysics_AF::jointFrictionDentScale
private

Definition at line 996 of file Physics_AF.h.

float idPhysics_AF::jointFrictionDentStart
private

Definition at line 994 of file Physics_AF.h.

float idPhysics_AF::jointFrictionScale
private

Definition at line 992 of file Physics_AF.h.

idLCP* idPhysics_AF::lcp
private

Definition at line 1017 of file Physics_AF.h.

float idPhysics_AF::linearFriction
private

Definition at line 972 of file Physics_AF.h.

bool idPhysics_AF::linearTime
private

Definition at line 1007 of file Physics_AF.h.

idAFBody* idPhysics_AF::masterBody
private

Definition at line 1016 of file Physics_AF.h.

float idPhysics_AF::maxMoveTime
private

Definition at line 985 of file Physics_AF.h.

float idPhysics_AF::minMoveTime
private

Definition at line 984 of file Physics_AF.h.

bool idPhysics_AF::noImpact
private

Definition at line 1008 of file Physics_AF.h.

float idPhysics_AF::noMoveRotation
private

Definition at line 983 of file Physics_AF.h.

float idPhysics_AF::noMoveTime
private

Definition at line 981 of file Physics_AF.h.

float idPhysics_AF::noMoveTranslation
private

Definition at line 982 of file Physics_AF.h.

idList<idAFConstraint *> idPhysics_AF::primaryConstraints
private

Definition at line 963 of file Physics_AF.h.

AFPState_t idPhysics_AF::saved
private

Definition at line 1014 of file Physics_AF.h.

bool idPhysics_AF::selfCollision
private

Definition at line 1005 of file Physics_AF.h.

idVec2 idPhysics_AF::suspendAcceleration
private

Definition at line 980 of file Physics_AF.h.

idVec2 idPhysics_AF::suspendVelocity
private

Definition at line 979 of file Physics_AF.h.

float idPhysics_AF::timeScale
private

Definition at line 988 of file Physics_AF.h.

float idPhysics_AF::timeScaleRampEnd
private

Definition at line 990 of file Physics_AF.h.

float idPhysics_AF::timeScaleRampStart
private

Definition at line 989 of file Physics_AF.h.

float idPhysics_AF::totalMass
private

Definition at line 976 of file Physics_AF.h.

idList<idAFTree *> idPhysics_AF::trees
private

Definition at line 960 of file Physics_AF.h.

bool idPhysics_AF::worldConstraintsLocked
private

Definition at line 1009 of file Physics_AF.h.


The documentation for this class was generated from the following files: