Drag[en]gine Game Engine  1.21
deColliderBone Class Reference

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
deColliderGetCollider () const
 Parent collider. More...
 
int GetIndex () const
 Bone index inside the parent collider. More...
 
const decDVectorGetPosition () 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 decQuaternionGetOrientation () const
 Orientation. More...
 
void SetOrientation (const decQuaternion &orientation)
 Set orientation. More...
 
const decVectorGetLinearVelocity () const
 Linear velocity in m/s. More...
 
void SetLinearVelocity (const decVector &linVelo)
 Set linear velocity in m/s. More...
 
const decVectorGetAngularVelocity () const
 Angular velocity in degree/s. More...
 
void SetAngularVelocity (const decVector &angVelo)
 Set angular velocity in degree/s. More...
 
const decDMatrixGetMatrix () const
 Matrix. More...
 
const decDMatrixGetInverseMatrix () 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...
 

Detailed Description

Scene Collider Bone Object.

Defines the motion state of a bone in a collider of the rigged or component type.

Constructor & Destructor Documentation

◆ deColliderBone()

deColliderBone::deColliderBone ( deCollider collider,
int  index 
)

Create new collider bone object with the given parent collider.

◆ ~deColliderBone()

deColliderBone::~deColliderBone ( )

Clean up collider bone object.

Member Function Documentation

◆ GetAngularVelocity()

const decVector& deColliderBone::GetAngularVelocity ( ) const
inline

Angular velocity in degree/s.

◆ GetCollider()

deCollider* deColliderBone::GetCollider ( ) const
inline

Parent collider.

◆ GetDynamic()

bool deColliderBone::GetDynamic ( ) const
inline

Bone is dynamic.

◆ GetIndex()

int deColliderBone::GetIndex ( ) const
inline

Bone index inside the parent collider.

◆ GetInverseMatrix()

const decDMatrix& deColliderBone::GetInverseMatrix ( ) const
inline

Inverse matrix.

◆ GetLinearVelocity()

const decVector& deColliderBone::GetLinearVelocity ( ) const
inline

Linear velocity in m/s.

◆ GetMass()

float deColliderBone::GetMass ( ) const
inline

Mass factor.

◆ GetMatrix()

const decDMatrix& deColliderBone::GetMatrix ( ) const
inline

Matrix.

◆ GetOrientation()

const decQuaternion& deColliderBone::GetOrientation ( ) const
inline

Orientation.

◆ GetPosition()

const decDVector& deColliderBone::GetPosition ( ) const
inline

Position relative to parent bone or collider if there is no parent bone.

◆ SetAngularVelocity()

void deColliderBone::SetAngularVelocity ( const decVector angVelo)

Set angular velocity in degree/s.

◆ SetDynamic()

void deColliderBone::SetDynamic ( bool  dynamic)

Sets of the bone is dynamic.

◆ SetLinearVelocity()

void deColliderBone::SetLinearVelocity ( const decVector linVelo)

Set linear velocity in m/s.

◆ SetMass()

void deColliderBone::SetMass ( float  mass)

Set mass factor.

◆ SetOrientation()

void deColliderBone::SetOrientation ( const decQuaternion orientation)

Set orientation.

◆ SetPosition()

void deColliderBone::SetPosition ( const decDVector position)

Set position relative to parent bone or collider if there is no parent bone.

◆ UpdateMatrix()

void deColliderBone::UpdateMatrix ( )

Updates the matrix from the current position and orientation.


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