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

#include <Physics_AF.h>

Inheritance diagram for idAFConstraint_UniversalJoint:
idAFConstraint

Public Member Functions

 idAFConstraint_UniversalJoint (const idStr &name, idAFBody *body1, idAFBody *body2)
 
 ~idAFConstraint_UniversalJoint (void)
 
void SetAnchor (const idVec3 &worldPosition)
 
idVec3 GetAnchor (void) const
 
void SetShafts (const idVec3 &cardanShaft1, const idVec3 &cardanShaft2)
 
void GetShafts (idVec3 &cardanShaft1, idVec3 &cardanShaft2)
 
void SetNoLimit (void)
 
void SetConeLimit (const idVec3 &coneAxis, const float coneAngle)
 
void SetPyramidLimit (const idVec3 &pyramidAxis, const idVec3 &baseAxis, const float angle1, const float angle2)
 
void SetLimitEpsilon (const float e)
 
void SetFriction (const float f)
 
float GetFriction (void) const
 
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)
 
- Public Member Functions inherited from idAFConstraint
 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)
 

Protected Member Functions

virtual void Evaluate (float invTimeStep)
 
virtual void ApplyFriction (float invTimeStep)
 
- Protected Member Functions inherited from idAFConstraint
void InitSize (int size)
 

Protected Attributes

idVec3 anchor1
 
idVec3 anchor2
 
idVec3 shaft1
 
idVec3 shaft2
 
idVec3 axis1
 
idVec3 axis2
 
float friction
 
idAFConstraint_ConeLimitconeLimit
 
idAFConstraint_PyramidLimitpyramidLimit
 
idAFConstraint_UniversalJointFrictionfc
 
- Protected Attributes inherited from idAFConstraint
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
 

Detailed Description

Definition at line 236 of file Physics_AF.h.

Constructor & Destructor Documentation

idAFConstraint_UniversalJoint::idAFConstraint_UniversalJoint ( const idStr name,
idAFBody body1,
idAFBody body2 
)

Definition at line 919 of file Physics_AF.cpp.

idAFConstraint_UniversalJoint::~idAFConstraint_UniversalJoint ( void  )

Definition at line 939 of file Physics_AF.cpp.

Member Function Documentation

void idAFConstraint_UniversalJoint::ApplyFriction ( float  invTimeStep)
protectedvirtual

Reimplemented from idAFConstraint.

Definition at line 1197 of file Physics_AF.cpp.

void idAFConstraint_UniversalJoint::DebugDraw ( void  )
virtual

Reimplemented from idAFConstraint.

Definition at line 1293 of file Physics_AF.cpp.

void idAFConstraint_UniversalJoint::Evaluate ( float  invTimeStep)
protectedvirtual

Reimplemented from idAFConstraint.

Definition at line 1125 of file Physics_AF.cpp.

idVec3 idAFConstraint_UniversalJoint::GetAnchor ( void  ) const

Definition at line 981 of file Physics_AF.cpp.

void idAFConstraint_UniversalJoint::GetCenter ( idVec3 center)
virtual

Reimplemented from idAFConstraint.

Definition at line 1284 of file Physics_AF.cpp.

void idAFConstraint_UniversalJoint::GetForce ( idAFBody body,
idVec6 force 
)
virtual

Reimplemented from idAFConstraint.

Definition at line 1238 of file Physics_AF.cpp.

float idAFConstraint_UniversalJoint::GetFriction ( void  ) const

Definition at line 1111 of file Physics_AF.cpp.

void idAFConstraint_UniversalJoint::GetShafts ( idVec3 cardanShaft1,
idVec3 cardanShaft2 
)
inline

Definition at line 244 of file Physics_AF.h.

void idAFConstraint_UniversalJoint::Restore ( idRestoreGame saveFile)
virtual

Reimplemented from idAFConstraint.

Definition at line 1371 of file Physics_AF.cpp.

void idAFConstraint_UniversalJoint::Rotate ( const idRotation rotation)
virtual

Reimplemented from idAFConstraint.

Definition at line 1265 of file Physics_AF.cpp.

void idAFConstraint_UniversalJoint::Save ( idSaveGame saveFile) const
virtual

Reimplemented from idAFConstraint.

Definition at line 1349 of file Physics_AF.cpp.

void idAFConstraint_UniversalJoint::SetAnchor ( const idVec3 worldPosition)

Definition at line 956 of file Physics_AF.cpp.

void idAFConstraint_UniversalJoint::SetConeLimit ( const idVec3 coneAxis,
const float  coneAngle 
)

Definition at line 1051 of file Physics_AF.cpp.

void idAFConstraint_UniversalJoint::SetFriction ( const float  f)
inline

Definition at line 250 of file Physics_AF.h.

void idAFConstraint_UniversalJoint::SetLimitEpsilon ( const float  e)

Definition at line 1097 of file Physics_AF.cpp.

void idAFConstraint_UniversalJoint::SetNoLimit ( void  )

Definition at line 1035 of file Physics_AF.cpp.

void idAFConstraint_UniversalJoint::SetPyramidLimit ( const idVec3 pyramidAxis,
const idVec3 baseAxis,
const float  angle1,
const float  angle2 
)

Definition at line 1073 of file Physics_AF.cpp.

void idAFConstraint_UniversalJoint::SetShafts ( const idVec3 cardanShaft1,
const idVec3 cardanShaft2 
)

Definition at line 993 of file Physics_AF.cpp.

void idAFConstraint_UniversalJoint::Translate ( const idVec3 translation)
virtual

Reimplemented from idAFConstraint.

Definition at line 1248 of file Physics_AF.cpp.

Member Data Documentation

idVec3 idAFConstraint_UniversalJoint::anchor1
protected

Definition at line 261 of file Physics_AF.h.

idVec3 idAFConstraint_UniversalJoint::anchor2
protected

Definition at line 262 of file Physics_AF.h.

idVec3 idAFConstraint_UniversalJoint::axis1
protected

Definition at line 265 of file Physics_AF.h.

idVec3 idAFConstraint_UniversalJoint::axis2
protected

Definition at line 266 of file Physics_AF.h.

idAFConstraint_ConeLimit* idAFConstraint_UniversalJoint::coneLimit
protected

Definition at line 268 of file Physics_AF.h.

idAFConstraint_UniversalJointFriction* idAFConstraint_UniversalJoint::fc
protected

Definition at line 270 of file Physics_AF.h.

float idAFConstraint_UniversalJoint::friction
protected

Definition at line 267 of file Physics_AF.h.

idAFConstraint_PyramidLimit* idAFConstraint_UniversalJoint::pyramidLimit
protected

Definition at line 269 of file Physics_AF.h.

idVec3 idAFConstraint_UniversalJoint::shaft1
protected

Definition at line 263 of file Physics_AF.h.

idVec3 idAFConstraint_UniversalJoint::shaft2
protected

Definition at line 264 of file Physics_AF.h.


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