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

#include <IK.h>

Inheritance diagram for idIK_Reach:
idIK

Public Member Functions

 idIK_Reach (void)
 
virtual ~idIK_Reach (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)
 
- 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

int numArms
 
int enabledArms
 
jointHandle_t handJoints [MAX_ARMS]
 
jointHandle_t elbowJoints [MAX_ARMS]
 
jointHandle_t shoulderJoints [MAX_ARMS]
 
jointHandle_t dirJoints [MAX_ARMS]
 
idVec3 shoulderForward [MAX_ARMS]
 
idVec3 elbowForward [MAX_ARMS]
 
float upperArmLength [MAX_ARMS]
 
float lowerArmLength [MAX_ARMS]
 
idMat3 upperArmToShoulderJoint [MAX_ARMS]
 
idMat3 lowerArmToElbowJoint [MAX_ARMS]
 

Static Private Attributes

static const int MAX_ARMS = 2
 

Additional Inherited Members

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

Detailed Description

Definition at line 148 of file IK.h.

Constructor & Destructor Documentation

idIK_Reach::idIK_Reach ( void  )

Definition at line 849 of file IK.cpp.

idIK_Reach::~idIK_Reach ( void  )
virtual

Definition at line 874 of file IK.cpp.

Member Function Documentation

void idIK_Reach::ClearJointMods ( void  )
virtual

Reimplemented from idIK.

Definition at line 1113 of file IK.cpp.

void idIK_Reach::Evaluate ( void  )
virtual

Reimplemented from idIK.

Definition at line 1051 of file IK.cpp.

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

Reimplemented from idIK.

Definition at line 954 of file IK.cpp.

void idIK_Reach::Restore ( idRestoreGame savefile)

Definition at line 918 of file IK.cpp.

void idIK_Reach::Save ( idSaveGame savefile) const

Definition at line 882 of file IK.cpp.

Member Data Documentation

jointHandle_t idIK_Reach::dirJoints[MAX_ARMS]
private

Definition at line 170 of file IK.h.

idVec3 idIK_Reach::elbowForward[MAX_ARMS]
private

Definition at line 173 of file IK.h.

jointHandle_t idIK_Reach::elbowJoints[MAX_ARMS]
private

Definition at line 168 of file IK.h.

int idIK_Reach::enabledArms
private

Definition at line 166 of file IK.h.

jointHandle_t idIK_Reach::handJoints[MAX_ARMS]
private

Definition at line 167 of file IK.h.

float idIK_Reach::lowerArmLength[MAX_ARMS]
private

Definition at line 176 of file IK.h.

idMat3 idIK_Reach::lowerArmToElbowJoint[MAX_ARMS]
private

Definition at line 179 of file IK.h.

const int idIK_Reach::MAX_ARMS = 2
staticprivate

Definition at line 163 of file IK.h.

int idIK_Reach::numArms
private

Definition at line 165 of file IK.h.

idVec3 idIK_Reach::shoulderForward[MAX_ARMS]
private

Definition at line 172 of file IK.h.

jointHandle_t idIK_Reach::shoulderJoints[MAX_ARMS]
private

Definition at line 169 of file IK.h.

float idIK_Reach::upperArmLength[MAX_ARMS]
private

Definition at line 175 of file IK.h.

idMat3 idIK_Reach::upperArmToShoulderJoint[MAX_ARMS]
private

Definition at line 178 of file IK.h.


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