Drag[en]gine Game Engine
1.21
|
Scene component bone. More...
#include <deComponentBone.h>
Public Member Functions | |
Constructors and Destructors | |
deComponentBone () | |
Create new component bone. More... | |
~deComponentBone () | |
Clean up component bone. More... | |
Management | |
const decVector & | GetPosition () const |
Position relative to the rig bone coordinate system. More... | |
void | SetPosition (const decVector &position) |
Set position relative to the rig bone coordinate system. More... | |
const decQuaternion & | GetRotation () const |
Rotation relative to the rig bone coordinate system. More... | |
void | SetRotation (const decQuaternion &rotation) |
Set rotation relative to the rig bone coordinate system. More... | |
const decVector & | GetScale () const |
Scaling relative to the rig bone coordinate system. More... | |
void | SetScale (const decVector &scale) |
Set scaling relative to the rig bone coordinate system. More... | |
const decMatrix & | GetMatrix () const |
Bone matrix relative to the component coordinate system. More... | |
void | SetMatrix (const decMatrix &matrix) |
Bone matrix relative to the component coordinate system. More... | |
const decMatrix & | GetInverseMatrix () |
Inverse bone matrix relative to the component coordinate system. More... | |
const decMatrix & | GetOriginalMatrix () const |
Original matrix relative to the rig bone parent. More... | |
const decMatrix & | GetInverseOriginalMatrix () const |
Inverse original matrix relative to the rig bone parent. More... | |
void | SetOriginalMatrix (const decVector &position, const decVector &rotation) |
Set the original matrix and original inverse matrix. More... | |
int | GetParentBone () const |
Parent bone index. More... | |
void | SetParentBone (int parentBone) |
Parent bone index. More... | |
Scene component bone.
Holds the state of a rig or component bone
deComponentBone::deComponentBone | ( | ) |
Create new component bone.
deComponentBone::~deComponentBone | ( | ) |
Clean up component bone.
const decMatrix& deComponentBone::GetInverseMatrix | ( | ) |
Inverse bone matrix relative to the component coordinate system.
Calculates the inverse matrix from the matrix if dirty. Valid only after PrepareBones has been called on the parent component.
|
inline |
Inverse original matrix relative to the rig bone parent.
|
inline |
Bone matrix relative to the component coordinate system.
Valid only after PrepareBones has been called on the parent component.
|
inline |
Original matrix relative to the rig bone parent.
|
inline |
Parent bone index.
|
inline |
Position relative to the rig bone coordinate system.
|
inline |
Rotation relative to the rig bone coordinate system.
|
inline |
Scaling relative to the rig bone coordinate system.
void deComponentBone::SetMatrix | ( | const decMatrix & | matrix | ) |
Bone matrix relative to the component coordinate system.
Marks the inverse matrix dirty causing the inverse matrix to be calculated the next time GetInverseMatrix is called.
Set the original matrix and original inverse matrix.
void deComponentBone::SetParentBone | ( | int | parentBone | ) |
Parent bone index.
void deComponentBone::SetPosition | ( | const decVector & | position | ) |
Set position relative to the rig bone coordinate system.
void deComponentBone::SetRotation | ( | const decQuaternion & | rotation | ) |
Set rotation relative to the rig bone coordinate system.
void deComponentBone::SetScale | ( | const decVector & | scale | ) |
Set scaling relative to the rig bone coordinate system.