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_Hinge Class Reference

#include <Physics_AF.h>

Inheritance diagram for idAFConstraint_Hinge:
idAFConstraint

Public Member Functions

 idAFConstraint_Hinge (const idStr &name, idAFBody *body1, idAFBody *body2)
 
 ~idAFConstraint_Hinge (void)
 
void SetAnchor (const idVec3 &worldPosition)
 
idVec3 GetAnchor (void) const
 
void SetAxis (const idVec3 &axis)
 
void GetAxis (idVec3 &a1, idVec3 &a2) const
 
idVec3 GetAxis (void) const
 
void SetNoLimit (void)
 
void SetLimit (const idVec3 &axis, const float angle, const idVec3 &body1Axis)
 
void SetLimitEpsilon (const float e)
 
float GetAngle (void) const
 
void SetSteerAngle (const float degrees)
 
void SetSteerSpeed (const float speed)
 
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 axis1
 
idVec3 axis2
 
idMat3 initialAxis
 
float friction
 
idAFConstraint_ConeLimitconeLimit
 
idAFConstraint_HingeSteeringsteering
 
idAFConstraint_HingeFrictionfc
 
- 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 314 of file Physics_AF.h.

Constructor & Destructor Documentation

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

Definition at line 1571 of file Physics_AF.cpp.

idAFConstraint_Hinge::~idAFConstraint_Hinge ( void  )

Definition at line 1595 of file Physics_AF.cpp.

Member Function Documentation

void idAFConstraint_Hinge::ApplyFriction ( float  invTimeStep)
protectedvirtual

Reimplemented from idAFConstraint.

Definition at line 1840 of file Physics_AF.cpp.

void idAFConstraint_Hinge::DebugDraw ( void  )
virtual

Reimplemented from idAFConstraint.

Definition at line 1929 of file Physics_AF.cpp.

void idAFConstraint_Hinge::Evaluate ( float  invTimeStep)
protectedvirtual

Reimplemented from idAFConstraint.

Definition at line 1779 of file Physics_AF.cpp.

idVec3 idAFConstraint_Hinge::GetAnchor ( void  ) const

Definition at line 1633 of file Physics_AF.cpp.

float idAFConstraint_Hinge::GetAngle ( void  ) const

Definition at line 1732 of file Physics_AF.cpp.

void idAFConstraint_Hinge::GetAxis ( idVec3 a1,
idVec3 a2 
) const
inline

Definition at line 322 of file Physics_AF.h.

idVec3 idAFConstraint_Hinge::GetAxis ( void  ) const

Definition at line 1667 of file Physics_AF.cpp.

void idAFConstraint_Hinge::GetCenter ( idVec3 center)
virtual

Reimplemented from idAFConstraint.

Definition at line 1920 of file Physics_AF.cpp.

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

Reimplemented from idAFConstraint.

Definition at line 1881 of file Physics_AF.cpp.

float idAFConstraint_Hinge::GetFriction ( void  ) const

Definition at line 1720 of file Physics_AF.cpp.

void idAFConstraint_Hinge::Restore ( idRestoreGame saveFile)
virtual

Reimplemented from idAFConstraint.

Definition at line 1984 of file Physics_AF.cpp.

void idAFConstraint_Hinge::Rotate ( const idRotation rotation)
virtual

Reimplemented from idAFConstraint.

Definition at line 1905 of file Physics_AF.cpp.

void idAFConstraint_Hinge::Save ( idSaveGame saveFile) const
virtual

Reimplemented from idAFConstraint.

Definition at line 1951 of file Physics_AF.cpp.

void idAFConstraint_Hinge::SetAnchor ( const idVec3 worldPosition)

Definition at line 1612 of file Physics_AF.cpp.

void idAFConstraint_Hinge::SetAxis ( const idVec3 axis)

Definition at line 1645 of file Physics_AF.cpp.

void idAFConstraint_Hinge::SetFriction ( const float  f)
inline

Definition at line 330 of file Physics_AF.h.

void idAFConstraint_Hinge::SetLimit ( const idVec3 axis,
const float  angle,
const idVec3 body1Axis 
)

Definition at line 1691 of file Physics_AF.cpp.

void idAFConstraint_Hinge::SetLimitEpsilon ( const float  e)

Definition at line 1709 of file Physics_AF.cpp.

void idAFConstraint_Hinge::SetNoLimit ( void  )

Definition at line 1679 of file Physics_AF.cpp.

void idAFConstraint_Hinge::SetSteerAngle ( const float  degrees)

Definition at line 1751 of file Physics_AF.cpp.

void idAFConstraint_Hinge::SetSteerSpeed ( const float  speed)

Definition at line 1768 of file Physics_AF.cpp.

void idAFConstraint_Hinge::Translate ( const idVec3 translation)
virtual

Reimplemented from idAFConstraint.

Definition at line 1891 of file Physics_AF.cpp.

Member Data Documentation

idVec3 idAFConstraint_Hinge::anchor1
protected

Definition at line 341 of file Physics_AF.h.

idVec3 idAFConstraint_Hinge::anchor2
protected

Definition at line 342 of file Physics_AF.h.

idVec3 idAFConstraint_Hinge::axis1
protected

Definition at line 343 of file Physics_AF.h.

idVec3 idAFConstraint_Hinge::axis2
protected

Definition at line 344 of file Physics_AF.h.

idAFConstraint_ConeLimit* idAFConstraint_Hinge::coneLimit
protected

Definition at line 347 of file Physics_AF.h.

idAFConstraint_HingeFriction* idAFConstraint_Hinge::fc
protected

Definition at line 349 of file Physics_AF.h.

float idAFConstraint_Hinge::friction
protected

Definition at line 346 of file Physics_AF.h.

idMat3 idAFConstraint_Hinge::initialAxis
protected

Definition at line 345 of file Physics_AF.h.

idAFConstraint_HingeSteering* idAFConstraint_Hinge::steering
protected

Definition at line 348 of file Physics_AF.h.


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