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

#include <IK.h>

Inheritance diagram for idIK:
idIK_Reach idIK_Walk

Public Member Functions

 idIK (void)
 
virtual ~idIK (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
bool IsInitialized (void) const
 
virtual bool Init (idEntity *self, const char *anim, const idVec3 &modelOffset)
 
virtual void Evaluate (void)
 
virtual void ClearJointMods (void)
 
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)
 

Protected Attributes

bool initialized
 
bool ik_activate
 
idEntityself
 
idAnimatoranimator
 
int modifiedAnim
 
idVec3 modelOffset
 

Detailed Description

Definition at line 42 of file IK.h.

Constructor & Destructor Documentation

idIK::idIK ( void  )

Definition at line 47 of file IK.cpp.

idIK::~idIK ( void  )
virtual

Definition at line 61 of file IK.cpp.

Member Function Documentation

void idIK::ClearJointMods ( void  )
virtual

Reimplemented in idIK_Reach, and idIK_Walk.

Definition at line 173 of file IK.cpp.

void idIK::Evaluate ( void  )
virtual

Reimplemented in idIK_Reach, and idIK_Walk.

Definition at line 165 of file IK.cpp.

float idIK::GetBoneAxis ( const idVec3 startPos,
const idVec3 endPos,
const idVec3 dir,
idMat3 axis 
)

Definition at line 214 of file IK.cpp.

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

Reimplemented in idIK_Reach, and idIK_Walk.

Definition at line 122 of file IK.cpp.

bool idIK::IsInitialized ( void  ) const

Definition at line 113 of file IK.cpp.

void idIK::Restore ( idRestoreGame savefile)

Definition at line 82 of file IK.cpp.

void idIK::Save ( idSaveGame savefile) const

Definition at line 69 of file IK.cpp.

bool idIK::SolveTwoBones ( const idVec3 startPos,
const idVec3 endPos,
const idVec3 dir,
float  len0,
float  len1,
idVec3 jointPos 
)

Definition at line 182 of file IK.cpp.

Member Data Documentation

idAnimator* idIK::animator
protected

Definition at line 63 of file IK.h.

bool idIK::ik_activate
protected

Definition at line 61 of file IK.h.

bool idIK::initialized
protected

Definition at line 60 of file IK.h.

idVec3 idIK::modelOffset
protected

Definition at line 65 of file IK.h.

int idIK::modifiedAnim
protected

Definition at line 64 of file IK.h.

idEntity* idIK::self
protected

Definition at line 62 of file IK.h.


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