Drag[en]gine Game Engine
1.21
|
Scene Collider Bone Object. More...
#include <deColliderBone.h>
Public Member Functions | |
Constructors and Destructors | |
deColliderBone (deCollider *collider, int index) | |
Create new collider bone object with the given parent collider. More... | |
~deColliderBone () | |
Clean up collider bone object. More... | |
Management | |
deCollider * | GetCollider () const |
Parent collider. More... | |
int | GetIndex () const |
Bone index inside the parent collider. More... | |
const decDVector & | GetPosition () const |
Position relative to parent bone or collider if there is no parent bone. More... | |
void | SetPosition (const decDVector &position) |
Set position relative to parent bone or collider if there is no parent bone. More... | |
const decQuaternion & | GetOrientation () const |
Orientation. More... | |
void | SetOrientation (const decQuaternion &orientation) |
Set orientation. More... | |
const decVector & | GetLinearVelocity () const |
Linear velocity in m/s. More... | |
void | SetLinearVelocity (const decVector &linVelo) |
Set linear velocity in m/s. More... | |
const decVector & | GetAngularVelocity () const |
Angular velocity in degree/s. More... | |
void | SetAngularVelocity (const decVector &angVelo) |
Set angular velocity in degree/s. More... | |
const decDMatrix & | GetMatrix () const |
Matrix. More... | |
const decDMatrix & | GetInverseMatrix () const |
Inverse matrix. More... | |
void | UpdateMatrix () |
Updates the matrix from the current position and orientation. More... | |
float | GetMass () const |
Mass factor. More... | |
void | SetMass (float mass) |
Set mass factor. More... | |
bool | GetDynamic () const |
Bone is dynamic. More... | |
void | SetDynamic (bool dynamic) |
Sets of the bone is dynamic. More... | |
Scene Collider Bone Object.
Defines the motion state of a bone in a collider of the rigged or component type.
deColliderBone::deColliderBone | ( | deCollider * | collider, |
int | index | ||
) |
Create new collider bone object with the given parent collider.
deColliderBone::~deColliderBone | ( | ) |
Clean up collider bone object.
|
inline |
Angular velocity in degree/s.
|
inline |
Parent collider.
|
inline |
Bone is dynamic.
|
inline |
Bone index inside the parent collider.
|
inline |
Inverse matrix.
|
inline |
Linear velocity in m/s.
|
inline |
Mass factor.
|
inline |
Matrix.
|
inline |
Orientation.
|
inline |
Position relative to parent bone or collider if there is no parent bone.
void deColliderBone::SetAngularVelocity | ( | const decVector & | angVelo | ) |
Set angular velocity in degree/s.
void deColliderBone::SetDynamic | ( | bool | dynamic | ) |
Sets of the bone is dynamic.
void deColliderBone::SetLinearVelocity | ( | const decVector & | linVelo | ) |
Set linear velocity in m/s.
void deColliderBone::SetMass | ( | float | mass | ) |
Set mass factor.
void deColliderBone::SetOrientation | ( | const decQuaternion & | orientation | ) |
Set orientation.
void deColliderBone::SetPosition | ( | const decDVector & | position | ) |
Set position relative to parent bone or collider if there is no parent bone.
void deColliderBone::UpdateMatrix | ( | ) |
Updates the matrix from the current position and orientation.