Class Bone
Represents a bone object in a model.
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public class Bone
Constructors
Bone(int, int, string, Matrix4x4)
Initializes a new instance of the Bone class.
Declaration
public Bone(int index, int parentIndex, string name, Matrix4x4 localTransform)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
int | parentIndex | The index of the parent. |
string | name | The name. |
Matrix4x4 | localTransform | The local transform. |
Bone(int, int, string, Matrix4x4, Matrix4x4)
Initializes a new instance of the Bone class.
Declaration
public Bone(int index, int parentIndex, string name, Matrix4x4 localTransform, Matrix4x4 absoluteTransform)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
int | parentIndex | The index of the parent. |
string | name | The name. |
Matrix4x4 | localTransform | The local transform. |
Matrix4x4 | absoluteTransform | The absolute transform. |
Fields
AbsoluteTransform
Absolute bone transformation.
Declaration
public Matrix4x4 AbsoluteTransform
Field Value
Type | Description |
---|---|
Matrix4x4 |
Index
Index of the bone in the hierarchy.
Declaration
public int Index
Field Value
Type | Description |
---|---|
int |
LocalTransform
Local bone transformation.
Declaration
public Matrix4x4 LocalTransform
Field Value
Type | Description |
---|---|
Matrix4x4 |
Name
The name of the bone.
Declaration
public string Name
Field Value
Type | Description |
---|---|
string |
ParentIndex
Index of the parent bone; -1 if it is the root bone.
Declaration
public int ParentIndex
Field Value
Type | Description |
---|---|
int |