29 #ifndef __PHYSICS_STATICMULTI_H__
30 #define __PHYSICS_STATICMULTI_H__
51 void RemoveIndex(
int id = 0,
bool freeClipModel =
true );
61 void SetMass(
float mass,
int id = -1 );
62 float GetMass(
int id = -1 )
const;
73 bool Evaluate(
int timeStepMSec,
int endTimeMSec );
const trace_t * GetBlockingInfo(void) const
int GetAngularEndTime(void) const
const contactInfo_t & GetContact(int num) const
int ClipContents(const idClipModel *model) const
void SetSelf(idEntity *e)
void AddContactEntity(idEntity *e)
void SetLinearVelocity(const idVec3 &newLinearVelocity, int id=0)
void Restore(idRestoreGame *savefile)
void RemoveContactEntity(idEntity *e)
void Save(idSaveGame *savefile) const
const idMat3 & GetAxis(int id=0) const
CLASS_PROTOTYPE(idPhysics_StaticMulti)
void UpdateTime(int endTimeMSec)
const idBounds & GetAbsBounds(int id=-1) const
const idVec3 & GetLinearVelocity(int id=0) const
bool IsGroundEntity(int entityNum) const
int GetNumContacts(void) const
int GetContents(int id=-1) const
void SetMass(float mass, int id=-1)
bool Evaluate(int timeStepMSec, int endTimeMSec)
bool IsGroundClipModel(int entityNum, int id) const
const idVec3 & GetOrigin(int id=0) const
~idPhysics_StaticMulti(void)
const idVec3 & GetGravity(void) const
void SetMaster(idEntity *master, const bool orientated=true)
bool IsAtRest(void) const
void ApplyImpulse(const int id, const idVec3 &point, const idVec3 &impulse)
void SetAngularVelocity(const idVec3 &newAngularVelocity, int id=0)
bool IsPushable(void) const
void GetImpactInfo(const int id, const idVec3 &point, impactInfo_t *info) const
void AddForce(const int id, const idVec3 &point, const idVec3 &force)
bool HasGroundContacts(void) const
bool EvaluateContacts(void)
idEntity * GetBlockingEntity(void) const
idList< idClipModel * > clipModels
const idVec3 & GetAngularVelocity(int id=0) const
void SetClipMask(int mask, int id=-1)
int GetRestStartTime(void) const
idPhysics_StaticMulti(void)
void Rotate(const idRotation &rotation, int id=-1)
void SetAxis(const idMat3 &newAxis, int id=-1)
void ClipTranslation(trace_t &results, const idVec3 &translation, const idClipModel *model) const
idList< staticPState_t > current
const idBounds & GetBounds(int id=-1) const
const idVec3 & GetGravityNormal(void) const
int GetLinearEndTime(void) const
void WriteToSnapshot(idBitMsgDelta &msg) const
void RemoveIndex(int id=0, bool freeClipModel=true)
void Translate(const idVec3 &translation, int id=-1)
int GetClipMask(int id=-1) const
float GetMass(int id=-1) const
void ClipRotation(trace_t &results, const idRotation &rotation, const idClipModel *model) const
void ReadFromSnapshot(const idBitMsgDelta &msg)
void SetGravity(const idVec3 &newGravity)
void SetClipModel(idClipModel *model, float density, int id=0, bool freeOld=true)
void SetPushed(int deltaTime)
int GetNumClipModels(void) const
const idVec3 & GetPushedAngularVelocity(const int id=0) const
const idVec3 & GetPushedLinearVelocity(const int id=0) const
void SetContents(int contents, int id=-1)
idClipModel * GetClipModel(int id=0) const
void SetOrigin(const idVec3 &newOrigin, int id=-1)