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

#include <IK.h>

Inheritance diagram for idIK_Walk:
idIK

Public Member Functions

 idIK_Walk (void)
 
virtual ~idIK_Walk (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
virtual bool Init (idEntity *self, const char *anim, const idVec3 &modelOffset)
 
virtual void Evaluate (void)
 
virtual void ClearJointMods (void)
 
void EnableAll (void)
 
void DisableAll (void)
 
void EnableLeg (int num)
 
void DisableLeg (int num)
 
- Public Member Functions inherited from idIK
 idIK (void)
 
virtual ~idIK (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
bool IsInitialized (void) const
 
bool SolveTwoBones (const idVec3 &startPos, const idVec3 &endPos, const idVec3 &dir, float len0, float len1, idVec3 &jointPos)
 
float GetBoneAxis (const idVec3 &startPos, const idVec3 &endPos, const idVec3 &dir, idMat3 &axis)
 

Private Attributes

idClipModelfootModel
 
int numLegs
 
int enabledLegs
 
jointHandle_t footJoints [MAX_LEGS]
 
jointHandle_t ankleJoints [MAX_LEGS]
 
jointHandle_t kneeJoints [MAX_LEGS]
 
jointHandle_t hipJoints [MAX_LEGS]
 
jointHandle_t dirJoints [MAX_LEGS]
 
jointHandle_t waistJoint
 
idVec3 hipForward [MAX_LEGS]
 
idVec3 kneeForward [MAX_LEGS]
 
float upperLegLength [MAX_LEGS]
 
float lowerLegLength [MAX_LEGS]
 
idMat3 upperLegToHipJoint [MAX_LEGS]
 
idMat3 lowerLegToKneeJoint [MAX_LEGS]
 
float smoothing
 
float waistSmoothing
 
float footShift
 
float waistShift
 
float minWaistFloorDist
 
float minWaistAnkleDist
 
float footUpTrace
 
float footDownTrace
 
bool tiltWaist
 
bool usePivot
 
int pivotFoot
 
float pivotYaw
 
idVec3 pivotPos
 
bool oldHeightsValid
 
float oldWaistHeight
 
float oldAnkleHeights [MAX_LEGS]
 
idVec3 waistOffset
 

Static Private Attributes

static const int MAX_LEGS = 8
 

Additional Inherited Members

- Protected Attributes inherited from idIK
bool initialized
 
bool ik_activate
 
idEntityself
 
idAnimatoranimator
 
int modifiedAnim
 
idVec3 modelOffset
 

Detailed Description

Definition at line 77 of file IK.h.

Constructor & Destructor Documentation

idIK_Walk::idIK_Walk ( void  )

Definition at line 238 of file IK.cpp.

idIK_Walk::~idIK_Walk ( void  )
virtual

Definition at line 286 of file IK.cpp.

Member Function Documentation

void idIK_Walk::ClearJointMods ( void  )
virtual

Reimplemented from idIK.

Definition at line 779 of file IK.cpp.

void idIK_Walk::DisableAll ( void  )

Definition at line 812 of file IK.cpp.

void idIK_Walk::DisableLeg ( int  num)

Definition at line 831 of file IK.cpp.

void idIK_Walk::EnableAll ( void  )

Definition at line 802 of file IK.cpp.

void idIK_Walk::EnableLeg ( int  num)

Definition at line 822 of file IK.cpp.

void idIK_Walk::Evaluate ( void  )
virtual

Reimplemented from idIK.

Definition at line 563 of file IK.cpp.

bool idIK_Walk::Init ( idEntity self,
const char *  anim,
const idVec3 modelOffset 
)
virtual

Reimplemented from idIK.

Definition at line 423 of file IK.cpp.

void idIK_Walk::Restore ( idRestoreGame savefile)

Definition at line 360 of file IK.cpp.

void idIK_Walk::Save ( idSaveGame savefile) const

Definition at line 297 of file IK.cpp.

Member Data Documentation

jointHandle_t idIK_Walk::ankleJoints[MAX_LEGS]
private

Definition at line 103 of file IK.h.

jointHandle_t idIK_Walk::dirJoints[MAX_LEGS]
private

Definition at line 106 of file IK.h.

int idIK_Walk::enabledLegs
private

Definition at line 101 of file IK.h.

float idIK_Walk::footDownTrace
private

Definition at line 125 of file IK.h.

jointHandle_t idIK_Walk::footJoints[MAX_LEGS]
private

Definition at line 102 of file IK.h.

idClipModel* idIK_Walk::footModel
private

Definition at line 98 of file IK.h.

float idIK_Walk::footShift
private

Definition at line 120 of file IK.h.

float idIK_Walk::footUpTrace
private

Definition at line 124 of file IK.h.

idVec3 idIK_Walk::hipForward[MAX_LEGS]
private

Definition at line 109 of file IK.h.

jointHandle_t idIK_Walk::hipJoints[MAX_LEGS]
private

Definition at line 105 of file IK.h.

idVec3 idIK_Walk::kneeForward[MAX_LEGS]
private

Definition at line 110 of file IK.h.

jointHandle_t idIK_Walk::kneeJoints[MAX_LEGS]
private

Definition at line 104 of file IK.h.

float idIK_Walk::lowerLegLength[MAX_LEGS]
private

Definition at line 113 of file IK.h.

idMat3 idIK_Walk::lowerLegToKneeJoint[MAX_LEGS]
private

Definition at line 116 of file IK.h.

const int idIK_Walk::MAX_LEGS = 8
staticprivate

Definition at line 96 of file IK.h.

float idIK_Walk::minWaistAnkleDist
private

Definition at line 123 of file IK.h.

float idIK_Walk::minWaistFloorDist
private

Definition at line 122 of file IK.h.

int idIK_Walk::numLegs
private

Definition at line 100 of file IK.h.

float idIK_Walk::oldAnkleHeights[MAX_LEGS]
private

Definition at line 135 of file IK.h.

bool idIK_Walk::oldHeightsValid
private

Definition at line 133 of file IK.h.

float idIK_Walk::oldWaistHeight
private

Definition at line 134 of file IK.h.

int idIK_Walk::pivotFoot
private

Definition at line 130 of file IK.h.

idVec3 idIK_Walk::pivotPos
private

Definition at line 132 of file IK.h.

float idIK_Walk::pivotYaw
private

Definition at line 131 of file IK.h.

float idIK_Walk::smoothing
private

Definition at line 118 of file IK.h.

bool idIK_Walk::tiltWaist
private

Definition at line 126 of file IK.h.

float idIK_Walk::upperLegLength[MAX_LEGS]
private

Definition at line 112 of file IK.h.

idMat3 idIK_Walk::upperLegToHipJoint[MAX_LEGS]
private

Definition at line 115 of file IK.h.

bool idIK_Walk::usePivot
private

Definition at line 127 of file IK.h.

jointHandle_t idIK_Walk::waistJoint
private

Definition at line 107 of file IK.h.

idVec3 idIK_Walk::waistOffset
private

Definition at line 136 of file IK.h.

float idIK_Walk::waistShift
private

Definition at line 121 of file IK.h.

float idIK_Walk::waistSmoothing
private

Definition at line 119 of file IK.h.


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