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

#include <Physics_AF.h>

Inheritance diagram for idAFConstraint_Spring:
idAFConstraint

Public Member Functions

 idAFConstraint_Spring (const idStr &name, idAFBody *body1, idAFBody *body2)
 
void SetAnchor (const idVec3 &worldAnchor1, const idVec3 &worldAnchor2)
 
void SetSpring (const float stretch, const float compress, const float damping, const float restLength)
 
void SetLimit (const float minLength, const float maxLength)
 
virtual void DebugDraw (void)
 
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)
 
virtual void GetForce (idAFBody *body, idVec6 &force)
 

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 kstretch
 
float kcompress
 
float damping
 
float restLength
 
float minLength
 
float maxLength
 
- 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 467 of file Physics_AF.h.

Constructor & Destructor Documentation

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

Definition at line 2686 of file Physics_AF.cpp.

Member Function Documentation

void idAFConstraint_Spring::ApplyFriction ( float  invTimeStep)
protectedvirtual

Reimplemented from idAFConstraint.

Definition at line 2836 of file Physics_AF.cpp.

void idAFConstraint_Spring::DebugDraw ( void  )
virtual

Reimplemented from idAFConstraint.

Definition at line 2887 of file Physics_AF.cpp.

void idAFConstraint_Spring::Evaluate ( float  invTimeStep)
protectedvirtual

Reimplemented from idAFConstraint.

Definition at line 2744 of file Physics_AF.cpp.

void idAFConstraint_Spring::GetCenter ( idVec3 center)
virtual

Reimplemented from idAFConstraint.

Definition at line 2867 of file Physics_AF.cpp.

void idAFConstraint_Spring::Restore ( idRestoreGame saveFile)
virtual

Reimplemented from idAFConstraint.

Definition at line 2951 of file Physics_AF.cpp.

void idAFConstraint_Spring::Rotate ( const idRotation rotation)
virtual

Reimplemented from idAFConstraint.

Definition at line 2856 of file Physics_AF.cpp.

void idAFConstraint_Spring::Save ( idSaveGame saveFile) const
virtual

Reimplemented from idAFConstraint.

Definition at line 2934 of file Physics_AF.cpp.

void idAFConstraint_Spring::SetAnchor ( const idVec3 worldAnchor1,
const idVec3 worldAnchor2 
)

Definition at line 2703 of file Physics_AF.cpp.

void idAFConstraint_Spring::SetLimit ( const float  minLength,
const float  maxLength 
)

Definition at line 2733 of file Physics_AF.cpp.

void idAFConstraint_Spring::SetSpring ( const float  stretch,
const float  compress,
const float  damping,
const float  restLength 
)

Definition at line 2720 of file Physics_AF.cpp.

void idAFConstraint_Spring::Translate ( const idVec3 translation)
virtual

Reimplemented from idAFConstraint.

Definition at line 2845 of file Physics_AF.cpp.

Member Data Documentation

idVec3 idAFConstraint_Spring::anchor1
protected

Definition at line 482 of file Physics_AF.h.

idVec3 idAFConstraint_Spring::anchor2
protected

Definition at line 483 of file Physics_AF.h.

float idAFConstraint_Spring::damping
protected

Definition at line 486 of file Physics_AF.h.

float idAFConstraint_Spring::kcompress
protected

Definition at line 485 of file Physics_AF.h.

float idAFConstraint_Spring::kstretch
protected

Definition at line 484 of file Physics_AF.h.

float idAFConstraint_Spring::maxLength
protected

Definition at line 489 of file Physics_AF.h.

float idAFConstraint_Spring::minLength
protected

Definition at line 488 of file Physics_AF.h.

float idAFConstraint_Spring::restLength
protected

Definition at line 487 of file Physics_AF.h.


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