ScummVM API documentation
dgBody Class Reference

Public Member Functions

void AddForce (const dgVector &force)
 
void AddTorque (const dgVector &torque)
 
void AttachCollision (dgCollision *collision)
 
void SetGroupID (dgUnsigned32 id)
 
void SetMatrix (const dgMatrix &matrix)
 
void SetMatrixIgnoreSleep (const dgMatrix &matrix)
 
void SetUserData (void *const userData)
 
void SetForce (const dgVector &force)
 
void SetTorque (const dgVector &torque)
 
void SetOmega (const dgVector &omega)
 
void SetVelocity (const dgVector &velocity)
 
void SetLinearDamping (dgFloat32 linearDamp)
 
void SetAngularDamping (const dgVector &angularDamp)
 
void SetCentreOfMass (const dgVector &com)
 
void SetAparentMassMatrix (const dgVector &massMatrix)
 
void SetMassMatrix (dgFloat32 mass, dgFloat32 Ix, dgFloat32 Iy, dgFloat32 Iz)
 
void SetCollisionWithLinkedBodies (bool state)
 
void SetContinuesCollisionMode (bool mode)
 
void SetDestructorCallback (OnBodyDestroy destructor)
 
void SetMatrixUpdateCallback (OnMatrixUpdateCallback callback)
 
OnMatrixUpdateCallback GetMatrixUpdateCallback () const
 
void SetExtForceAndTorqueCallback (OnApplyExtForceAndTorque callback)
 
OnApplyExtForceAndTorque GetExtForceAndTorqueCallback () const
 
dgConstraintGetFirstJoint () const
 
dgConstraintGetNextJoint (const dgConstraint *joint) const
 
dgConstraintGetFirstContact () const
 
dgConstraintGetNextContact (const dgConstraint *joint) const
 
void * GetUserData () const
 
dgWorldGetWorld () const
 
const dgVectorGetMass () const
 
const dgVectorGetInvMass () const
 
const dgVectorGetAparentMass () const
 
const dgVectorGetOmega () const
 
const dgVectorGetVelocity () const
 
const dgVectorGetForce () const
 
const dgVectorGetTorque () const
 
const dgVectorGetNetForce () const
 
const dgVectorGetNetTorque () const
 
dgCollisionGetCollision () const
 
dgUnsigned32 GetGroupID () const
 
const dgMatrixGetMatrix () const
 
const dgVectorGetPosition () const
 
const dgQuaternionGetRotation () const
 
dgFloat32 GetLinearDamping () const
 
dgVector GetAngularDamping () const
 
dgVector GetCentreOfMass () const
 
bool IsInEquelibrium () const
 
void GetAABB (dgVector &p0, dgVector &p1) const
 
bool GetSleepState () const
 
bool GetAutoSleep () const
 
void SetAutoSleep (bool state)
 
bool GetFreeze () const
 
void SetFreeze (bool state)
 
void Freeze ()
 
void Unfreeze ()
 
dgInt32 GetUniqueID () const
 
bool GetCollisionWithLinkedBodies () const
 
bool GetContinuesCollisionMode () const
 
void AddBuoyancyForce (dgFloat32 fluidDensity, dgFloat32 fluidLinearViscousity, dgFloat32 fluidAngularViscousity, const dgVector &gravityVector, GetBuoyancyPlane buoyancyPlane, void *const context)
 
dgVector CalculateInverseDynamicForce (const dgVector &desiredVeloc, dgFloat32 timestep) const
 
dgFloat32 RayCast (const dgLineBox &line, OnRayCastAction filter, OnRayPrecastAction preFilter, void *const userData, dgFloat32 minT) const
 
void CalcInvInertiaMatrix ()
 
void CalcInvInertiaMatrixSimd ()
 
const dgMatrixGetCollisionMatrix () const
 
dgBodyMasterList::dgListNode * GetMasterList () const
 
void InvalidateCache ()
 

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