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

#include <Physics_AF.h>

Inheritance diagram for idAFConstraint:
idAFConstraint_BallAndSocketJoint idAFConstraint_BallAndSocketJointFriction idAFConstraint_ConeLimit idAFConstraint_Contact idAFConstraint_ContactFriction idAFConstraint_CylindricalJoint idAFConstraint_Fixed idAFConstraint_Hinge idAFConstraint_HingeFriction idAFConstraint_HingeSteering idAFConstraint_Line idAFConstraint_Plane idAFConstraint_PyramidLimit idAFConstraint_Slider idAFConstraint_Spring idAFConstraint_Suspension idAFConstraint_UniversalJoint idAFConstraint_UniversalJointFriction

Classes

struct  constraintFlags_s
 

Public Member Functions

 idAFConstraint (void)
 
virtual ~idAFConstraint (void)
 
constraintType_t GetType (void) const
 
const idStrGetName (void) const
 
idAFBodyGetBody1 (void) const
 
idAFBodyGetBody2 (void) const
 
void SetPhysics (idPhysics_AF *p)
 
const idVecXGetMultiplier (void)
 
virtual void SetBody1 (idAFBody *body)
 
virtual void SetBody2 (idAFBody *body)
 
virtual void DebugDraw (void)
 
virtual void GetForce (idAFBody *body, idVec6 &force)
 
virtual void Translate (const idVec3 &translation)
 
virtual void Rotate (const idRotation &rotation)
 
virtual void GetCenter (idVec3 &center)
 
virtual void Save (idSaveGame *saveFile) const
 
virtual void Restore (idRestoreGame *saveFile)
 

Protected Member Functions

virtual void Evaluate (float invTimeStep)
 
virtual void ApplyFriction (float invTimeStep)
 
void InitSize (int size)
 

Protected Attributes

constraintType_t type
 
idStr name
 
idAFBodybody1
 
idAFBodybody2
 
idPhysics_AFphysics
 
idMatX J1
 
idMatX J2
 
idVecX c1
 
idVecX c2
 
idVecX lo
 
idVecX hi
 
idVecX e
 
idAFConstraintboxConstraint
 
int boxIndex [6]
 
idMatX invI
 
idMatX J
 
idVecX s
 
idVecX lm
 
int firstIndex
 
struct
idAFConstraint::constraintFlags_s 
fl
 

Friends

class idPhysics_AF
 
class idAFTree
 

Detailed Description

Definition at line 93 of file Physics_AF.h.

Constructor & Destructor Documentation

idAFConstraint::idAFConstraint ( void  )

Definition at line 78 of file Physics_AF.cpp.

idAFConstraint::~idAFConstraint ( void  )
virtual

Definition at line 110 of file Physics_AF.cpp.

Member Function Documentation

void idAFConstraint::ApplyFriction ( float  invTimeStep)
protectedvirtual
void idAFConstraint::DebugDraw ( void  )
virtual
void idAFConstraint::Evaluate ( float  invTimeStep)
protectedvirtual
idAFBody* idAFConstraint::GetBody1 ( void  ) const
inline

Definition at line 103 of file Physics_AF.h.

idAFBody* idAFConstraint::GetBody2 ( void  ) const
inline

Definition at line 104 of file Physics_AF.h.

void idAFConstraint::GetCenter ( idVec3 center)
virtual
void idAFConstraint::GetForce ( idAFBody body,
idVec6 force 
)
virtual
const idVecX & idAFConstraint::GetMultiplier ( void  )

Definition at line 146 of file Physics_AF.cpp.

const idStr& idAFConstraint::GetName ( void  ) const
inline

Definition at line 102 of file Physics_AF.h.

constraintType_t idAFConstraint::GetType ( void  ) const
inline

Definition at line 101 of file Physics_AF.h.

void idAFConstraint::InitSize ( int  size)
protected

Definition at line 228 of file Physics_AF.cpp.

void idAFConstraint::Restore ( idRestoreGame saveFile)
virtual
void idAFConstraint::Rotate ( const idRotation rotation)
virtual
void idAFConstraint::Save ( idSaveGame saveFile) const
virtual
void idAFConstraint::SetBody1 ( idAFBody body)
virtual

Reimplemented in idAFConstraint_Fixed.

Definition at line 118 of file Physics_AF.cpp.

void idAFConstraint::SetBody2 ( idAFBody body)
virtual

Reimplemented in idAFConstraint_Fixed.

Definition at line 132 of file Physics_AF.cpp.

void idAFConstraint::SetPhysics ( idPhysics_AF p)
inline

Definition at line 105 of file Physics_AF.h.

void idAFConstraint::Translate ( const idVec3 translation)
virtual

Friends And Related Function Documentation

friend class idAFTree
friend

Definition at line 96 of file Physics_AF.h.

friend class idPhysics_AF
friend

Definition at line 95 of file Physics_AF.h.

Member Data Documentation

idAFBody* idAFConstraint::body1
protected

Definition at line 120 of file Physics_AF.h.

idAFBody* idAFConstraint::body2
protected

Definition at line 121 of file Physics_AF.h.

idAFConstraint* idAFConstraint::boxConstraint
protected

Definition at line 128 of file Physics_AF.h.

int idAFConstraint::boxIndex[6]
protected

Definition at line 129 of file Physics_AF.h.

idVecX idAFConstraint::c1
protected

Definition at line 126 of file Physics_AF.h.

idVecX idAFConstraint::c2
protected

Definition at line 126 of file Physics_AF.h.

idVecX idAFConstraint::e
protected

Definition at line 127 of file Physics_AF.h.

int idAFConstraint::firstIndex
protected

Definition at line 136 of file Physics_AF.h.

struct idAFConstraint::constraintFlags_s idAFConstraint::fl
protected
idVecX idAFConstraint::hi
protected

Definition at line 127 of file Physics_AF.h.

idMatX idAFConstraint::invI
protected

Definition at line 132 of file Physics_AF.h.

idMatX idAFConstraint::J
protected

Definition at line 133 of file Physics_AF.h.

idMatX idAFConstraint::J1
protected

Definition at line 125 of file Physics_AF.h.

idMatX idAFConstraint::J2
protected

Definition at line 125 of file Physics_AF.h.

idVecX idAFConstraint::lm
protected

Definition at line 135 of file Physics_AF.h.

idVecX idAFConstraint::lo
protected

Definition at line 127 of file Physics_AF.h.

idStr idAFConstraint::name
protected

Definition at line 119 of file Physics_AF.h.

idPhysics_AF* idAFConstraint::physics
protected

Definition at line 122 of file Physics_AF.h.

idVecX idAFConstraint::s
protected

Definition at line 134 of file Physics_AF.h.

constraintType_t idAFConstraint::type
protected

Definition at line 118 of file Physics_AF.h.


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