Class Animation
Represents an animation associated with a 3D model.
Inherited Members
Namespace: Genesis.Graphics.Animation3D
Assembly: Genesis.dll
Syntax
public class Animation
Constructors
Animation(Scene, Model, int)
Initializes a new instance of the Animation class.
Declaration
public Animation(Scene scene, Model model, int index)
Parameters
Type | Name | Description |
---|---|---|
Scene | scene | |
Model | model | |
int | index |
Properties
BoneInfoMap
Mapping of bone names to bone information.
Declaration
public Dictionary<string, boneinfo> BoneInfoMap { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, boneinfo> |
Bones
List of bones affected by the animation.
Declaration
public List<Bone> Bones { get; set; }
Property Value
Type | Description |
---|---|
List<Bone> |
Duration
Duration of the animation in ticks.
Declaration
public float Duration { get; set; }
Property Value
Type | Description |
---|---|
float |
Name
Name of the animation.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
RootNode
Root node of the animation's scene hierarchy.
Declaration
public AssimpNodeData RootNode { get; set; }
Property Value
Type | Description |
---|---|
AssimpNodeData |
TicksPerSecond
Number of ticks per second for the animation.
Declaration
public float TicksPerSecond { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
FindBone(string)
Finds a bone with the specified name.
Declaration
public Bone FindBone(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |
Returns
Type | Description |
---|---|
Bone |