Class Bone
Represents a bone in a skeletal animation system.
Inherited Members
Namespace: Genesis.Graphics.Animation3D
Assembly: Genesis.dll
Syntax
public class Bone
Constructors
Bone(string, int, NodeAnimationChannel)
Initializes a new instance of the Bone class.
Declaration
public Bone(string name, int id, NodeAnimationChannel channel)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
int | id | |
NodeAnimationChannel | channel |
Properties
ID
ID of the bone.
Declaration
public int ID { get; set; }
Property Value
Type | Description |
---|---|
int |
LocalTransform
Local transformation matrix of the bone.
Declaration
public mat4 LocalTransform { get; set; }
Property Value
Type | Description |
---|---|
mat4 |
Name
Name of the bone.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
NumPositions
Number of position keyframes.
Declaration
public int NumPositions { get; set; }
Property Value
Type | Description |
---|---|
int |
NumRotations
Number of rotation keyframes.
Declaration
public int NumRotations { get; set; }
Property Value
Type | Description |
---|---|
int |
NumScalings
Number of scale keyframes.
Declaration
public int NumScalings { get; set; }
Property Value
Type | Description |
---|---|
int |
Positions
List of position keyframes for the bone.
Declaration
public List<KeyPosition> Positions { get; set; }
Property Value
Type | Description |
---|---|
List<KeyPosition> |
Rotations
List of rotation keyframes for the bone.
Declaration
public List<KeyRotation> Rotations { get; set; }
Property Value
Type | Description |
---|---|
List<KeyRotation> |
Scales
List of scale keyframes for the bone.
Declaration
public List<KeyScale> Scales { get; set; }
Property Value
Type | Description |
---|---|
List<KeyScale> |
Methods
Update(float, bool)
Updates the bone transformation based on the animation time.
Declaration
public void Update(float animationTime, bool interpolate)
Parameters
Type | Name | Description |
---|---|---|
float | animationTime | |
bool | interpolate |