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

#include <Physics_AF.h>

Inheritance diagram for idAFConstraint_Suspension:
idAFConstraint

Public Member Functions

 idAFConstraint_Suspension (void)
 
void Setup (const char *name, idAFBody *body, const idVec3 &origin, const idMat3 &axis, idClipModel *clipModel)
 
void SetSuspension (const float up, const float down, const float k, const float d, const float f)
 
void SetSteerAngle (const float degrees)
 
void EnableMotor (const bool enable)
 
void SetMotorForce (const float force)
 
void SetMotorVelocity (const float vel)
 
void SetEpsilon (const float e)
 
const idVec3 GetWheelOrigin (void) const
 
virtual void DebugDraw (void)
 
virtual void Translate (const idVec3 &translation)
 
virtual void Rotate (const idRotation &rotation)
 
- 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)
 
virtual void GetForce (idAFBody *body, idVec6 &force)
 
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)
 
- Protected Member Functions inherited from idAFConstraint
void InitSize (int size)
 

Protected Attributes

idVec3 localOrigin
 
idMat3 localAxis
 
float suspensionUp
 
float suspensionDown
 
float suspensionKCompress
 
float suspensionDamping
 
float steerAngle
 
float friction
 
bool motorEnabled
 
float motorForce
 
float motorVelocity
 
idClipModelwheelModel
 
idVec3 wheelOffset
 
trace_t trace
 
float epsilon
 
- 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 601 of file Physics_AF.h.

Constructor & Destructor Documentation

idAFConstraint_Suspension::idAFConstraint_Suspension ( void  )

Definition at line 3887 of file Physics_AF.cpp.

Member Function Documentation

void idAFConstraint_Suspension::ApplyFriction ( float  invTimeStep)
protectedvirtual

Reimplemented from idAFConstraint.

Definition at line 4079 of file Physics_AF.cpp.

void idAFConstraint_Suspension::DebugDraw ( void  )
virtual

Reimplemented from idAFConstraint.

Definition at line 4104 of file Physics_AF.cpp.

void idAFConstraint_Suspension::EnableMotor ( const bool  enable)
inline

Definition at line 610 of file Physics_AF.h.

void idAFConstraint_Suspension::Evaluate ( float  invTimeStep)
protectedvirtual

Reimplemented from idAFConstraint.

Definition at line 3951 of file Physics_AF.cpp.

const idVec3 idAFConstraint_Suspension::GetWheelOrigin ( void  ) const

Definition at line 3942 of file Physics_AF.cpp.

void idAFConstraint_Suspension::Rotate ( const idRotation rotation)
virtual

Reimplemented from idAFConstraint.

Definition at line 4096 of file Physics_AF.cpp.

void idAFConstraint_Suspension::SetEpsilon ( const float  e)
inline

Definition at line 613 of file Physics_AF.h.

void idAFConstraint_Suspension::SetMotorForce ( const float  force)
inline

Definition at line 611 of file Physics_AF.h.

void idAFConstraint_Suspension::SetMotorVelocity ( const float  vel)
inline

Definition at line 612 of file Physics_AF.h.

void idAFConstraint_Suspension::SetSteerAngle ( const float  degrees)
inline

Definition at line 609 of file Physics_AF.h.

void idAFConstraint_Suspension::SetSuspension ( const float  up,
const float  down,
const float  k,
const float  d,
const float  f 
)

Definition at line 3929 of file Physics_AF.cpp.

void idAFConstraint_Suspension::Setup ( const char *  name,
idAFBody body,
const idVec3 origin,
const idMat3 axis,
idClipModel clipModel 
)

Definition at line 3915 of file Physics_AF.cpp.

void idAFConstraint_Suspension::Translate ( const idVec3 translation)
virtual

Reimplemented from idAFConstraint.

Definition at line 4088 of file Physics_AF.cpp.

Member Data Documentation

float idAFConstraint_Suspension::epsilon
protected

Definition at line 635 of file Physics_AF.h.

float idAFConstraint_Suspension::friction
protected

Definition at line 628 of file Physics_AF.h.

idMat3 idAFConstraint_Suspension::localAxis
protected

Definition at line 622 of file Physics_AF.h.

idVec3 idAFConstraint_Suspension::localOrigin
protected

Definition at line 621 of file Physics_AF.h.

bool idAFConstraint_Suspension::motorEnabled
protected

Definition at line 629 of file Physics_AF.h.

float idAFConstraint_Suspension::motorForce
protected

Definition at line 630 of file Physics_AF.h.

float idAFConstraint_Suspension::motorVelocity
protected

Definition at line 631 of file Physics_AF.h.

float idAFConstraint_Suspension::steerAngle
protected

Definition at line 627 of file Physics_AF.h.

float idAFConstraint_Suspension::suspensionDamping
protected

Definition at line 626 of file Physics_AF.h.

float idAFConstraint_Suspension::suspensionDown
protected

Definition at line 624 of file Physics_AF.h.

float idAFConstraint_Suspension::suspensionKCompress
protected

Definition at line 625 of file Physics_AF.h.

float idAFConstraint_Suspension::suspensionUp
protected

Definition at line 623 of file Physics_AF.h.

trace_t idAFConstraint_Suspension::trace
protected

Definition at line 634 of file Physics_AF.h.

idClipModel* idAFConstraint_Suspension::wheelModel
protected

Definition at line 632 of file Physics_AF.h.

idVec3 idAFConstraint_Suspension::wheelOffset
protected

Definition at line 633 of file Physics_AF.h.


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