AnimationChannel Class
Namespace: Stride.AnimationsAssembly: Stride.Engine.dll
List of float key frame data applying to a specific property in a node.
System.Object →
AnimationChannel
Derived from AnimationChannel:
public class AnimationChannel
Name | Description | |
---|---|---|
Constructors | ||
AnimationChannel() | ||
Properties | ||
KeyFrames | ||
TargetObject | Gets or sets the target object name. |
|
TargetProperty | Gets or sets the target property name. |
|
Methods | ||
EvaluateCubic(CompressedTimeSpan) | ||
Fitting(Func<CompressedTimeSpan, Single>, CompressedTimeSpan, Single) |
Constructors
AnimationChannel()
public AnimationChannel()
Properties
KeyFrames
public List<KeyFrameData<float>> KeyFrames { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<KeyFrameData<System.Single>> |
TargetObject
Gets or sets the target object name.
public string TargetObject { get; set; }
Property Value
Type | Description |
---|---|
System.String | The target object name. |
TargetProperty
Gets or sets the target property name.
public string TargetProperty { get; set; }
Property Value
Type | Description |
---|---|
System.String | The target property name. |
Methods
EvaluateCubic(CompressedTimeSpan)
public float EvaluateCubic(CompressedTimeSpan time)
Parameters
Type | Name | Description |
---|---|---|
CompressedTimeSpan | time |
Returns
Type | Description |
---|---|
System.Single |
Fitting(Func<CompressedTimeSpan, Single>, CompressedTimeSpan, Single)
public void Fitting(Func<CompressedTimeSpan, float> originalCurve, CompressedTimeSpan stepSize, float maxErrorThreshold)
Parameters
Type | Name | Description |
---|---|---|
System.Func<CompressedTimeSpan, System.Single> | originalCurve | |
CompressedTimeSpan | stepSize | |
System.Single | maxErrorThreshold |