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

#include <Physics_AF.h>

Inheritance diagram for idAFConstraint_BallAndSocketJoint:
idAFConstraint

Public Member Functions

 idAFConstraint_BallAndSocketJoint (const idStr &name, idAFBody *body1, idAFBody *body2)
 
 ~idAFConstraint_BallAndSocketJoint (void)
 
void SetAnchor (const idVec3 &worldPosition)
 
idVec3 GetAnchor (void) const
 
void SetNoLimit (void)
 
void SetConeLimit (const idVec3 &coneAxis, const float coneAngle, const idVec3 &body1Axis)
 
void SetPyramidLimit (const idVec3 &pyramidAxis, const idVec3 &baseAxis, const float angle1, const float angle2, const idVec3 &body1Axis)
 
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
 
float friction
 
idAFConstraint_ConeLimitconeLimit
 
idAFConstraint_PyramidLimitpyramidLimit
 
idAFConstraint_BallAndSocketJointFrictionfc
 
- 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 181 of file Physics_AF.h.

Constructor & Destructor Documentation

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

Definition at line 462 of file Physics_AF.cpp.

idAFConstraint_BallAndSocketJoint::~idAFConstraint_BallAndSocketJoint ( void  )

Definition at line 482 of file Physics_AF.cpp.

Member Function Documentation

void idAFConstraint_BallAndSocketJoint::ApplyFriction ( float  invTimeStep)
protectedvirtual

Reimplemented from idAFConstraint.

Definition at line 663 of file Physics_AF.cpp.

void idAFConstraint_BallAndSocketJoint::DebugDraw ( void  )
virtual

Reimplemented from idAFConstraint.

Definition at line 757 of file Physics_AF.cpp.

void idAFConstraint_BallAndSocketJoint::Evaluate ( float  invTimeStep)
protectedvirtual

Reimplemented from idAFConstraint.

Definition at line 623 of file Physics_AF.cpp.

idVec3 idAFConstraint_BallAndSocketJoint::GetAnchor ( void  ) const

Definition at line 521 of file Physics_AF.cpp.

void idAFConstraint_BallAndSocketJoint::GetCenter ( idVec3 center)
virtual

Reimplemented from idAFConstraint.

Definition at line 748 of file Physics_AF.cpp.

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

Reimplemented from idAFConstraint.

Definition at line 704 of file Physics_AF.cpp.

float idAFConstraint_BallAndSocketJoint::GetFriction ( void  ) const

Definition at line 611 of file Physics_AF.cpp.

void idAFConstraint_BallAndSocketJoint::Restore ( idRestoreGame saveFile)
virtual

Reimplemented from idAFConstraint.

Definition at line 796 of file Physics_AF.cpp.

void idAFConstraint_BallAndSocketJoint::Rotate ( const idRotation rotation)
virtual

Reimplemented from idAFConstraint.

Definition at line 731 of file Physics_AF.cpp.

void idAFConstraint_BallAndSocketJoint::Save ( idSaveGame saveFile) const
virtual

Reimplemented from idAFConstraint.

Definition at line 778 of file Physics_AF.cpp.

void idAFConstraint_BallAndSocketJoint::SetAnchor ( const idVec3 worldPosition)

Definition at line 496 of file Physics_AF.cpp.

void idAFConstraint_BallAndSocketJoint::SetConeLimit ( const idVec3 coneAxis,
const float  coneAngle,
const idVec3 body1Axis 
)

Definition at line 549 of file Physics_AF.cpp.

void idAFConstraint_BallAndSocketJoint::SetFriction ( const float  f)
inline

Definition at line 193 of file Physics_AF.h.

void idAFConstraint_BallAndSocketJoint::SetLimitEpsilon ( const float  e)

Definition at line 597 of file Physics_AF.cpp.

void idAFConstraint_BallAndSocketJoint::SetNoLimit ( void  )

Definition at line 533 of file Physics_AF.cpp.

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

Definition at line 571 of file Physics_AF.cpp.

void idAFConstraint_BallAndSocketJoint::Translate ( const idVec3 translation)
virtual

Reimplemented from idAFConstraint.

Definition at line 714 of file Physics_AF.cpp.

Member Data Documentation

idVec3 idAFConstraint_BallAndSocketJoint::anchor1
protected

Definition at line 204 of file Physics_AF.h.

idVec3 idAFConstraint_BallAndSocketJoint::anchor2
protected

Definition at line 205 of file Physics_AF.h.

idAFConstraint_ConeLimit* idAFConstraint_BallAndSocketJoint::coneLimit
protected

Definition at line 207 of file Physics_AF.h.

idAFConstraint_BallAndSocketJointFriction* idAFConstraint_BallAndSocketJoint::fc
protected

Definition at line 209 of file Physics_AF.h.

float idAFConstraint_BallAndSocketJoint::friction
protected

Definition at line 206 of file Physics_AF.h.

idAFConstraint_PyramidLimit* idAFConstraint_BallAndSocketJoint::pyramidLimit
protected

Definition at line 208 of file Physics_AF.h.


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