Class AnimationTrackContext
Defines the animation sequence.
Namespace: Evergine.Framework.Animation
Assembly: Evergine.Framework.dll
Syntax
public class AnimationTrackContext
Fields
ChannelsContext
The context of the channel.
Declaration
public AnimationChannelContext[] ChannelsContext
Field Value
| Type | Description |
|---|---|
| AnimationChannelContext[] |
ListenKeyframeEvents
Listens to keyframe events.
Declaration
public bool ListenKeyframeEvents
Field Value
| Type | Description |
|---|---|
| bool |
LoopCount
Number of loops.
Declaration
public int LoopCount
Field Value
| Type | Description |
|---|---|
| int |
Nodes
The hierarchical mapping.
Declaration
public Entity[] Nodes
Field Value
| Type | Description |
|---|---|
| Entity[] |
PositionOffset
Latest motion position.
Declaration
public Vector3 PositionOffset
Field Value
| Type | Description |
|---|---|
| Vector3 |
RootChannelPositionContext
The root channel context.
Declaration
public AnimationChannelContext RootChannelPositionContext
Field Value
| Type | Description |
|---|---|
| AnimationChannelContext |
RootChannelRotationContext
The root channel context.
Declaration
public AnimationChannelContext RootChannelRotationContext
Field Value
| Type | Description |
|---|---|
| AnimationChannelContext |
RotationOffset
The last motion rotation.
Declaration
public Quaternion RotationOffset
Field Value
| Type | Description |
|---|---|
| Quaternion |
Time
Represents the current context time.
Declaration
public float? Time
Field Value
| Type | Description |
|---|---|
| float? |
Methods
Initialize(AnimationClip)
Initializes this context.
Declaration
public void Initialize(AnimationClip track)
Parameters
| Type | Name | Description |
|---|---|---|
| AnimationClip | track | The track. |
Reset()
Resets the context.
Declaration
public void Reset()