Property | Type | Description | |
---|---|---|---|
isSplineRebuildNeeded | bool | ||
positionSpline | PositionalSpline | ||
rotationSpline | RotationalSpline | ||
scaleSpline | PositionalSpline | ||
target | Node | ||
useShortestPath | bool |
Method | Description | |
---|---|---|
Apply ( float time, float weight, bool accumulate, float scale ) : void |
Applies an animation track at a certain position to the target node. When a track has bee associated with a target node, you can eaisly apply the animation to the target by calling this method. |
|
ApplyToNode ( |
Same as the Apply method, but applies to a specified Node instead of it's associated node.
|
|
CreateKeyFrameImpl ( float time ) : |
Specialised keyframe creation
|
|
CreateNodeKeyFrame ( float time ) : |
Creates a new KeyFrame and adds it to this animation at the given time index. It is better to create KeyFrames in time order. Creating them out of order can result in expensive reordering processing. Note that a KeyFrame at time index 0.0 is always created for you, so you don't need to create this one, just access it using getKeyFrame(0); |
|
GetInterpolatedKeyFrame ( float time, |
Gets a KeyFrame object which contains the interpolated transforms at the time index specified. The KeyFrame objects held by this class are transformation snapshots at discrete points in time. Normally however, you want to interpolate between these keyframes to produce smooth movement, and this method allows you to do this easily. In animation terminology this is called 'tweening'. |
|
GetNodeKeyFrame ( ushort index ) : |
Returns the KeyFrame at the specified index.
|
|
HasNonZeroKeyFrames ( ) : bool |
Method to determine if this track has any KeyFrames which are doing anything useful - can be used to determine if this track can be optimised out.
|
|
NodeAnimationTrack ( |
||
NodeAnimationTrack ( |
Internal constructor, to prevent direction instantiation. Should be created via a call to the CreateTrack method of an Animation.
|
|
NodeAnimationTrack ( |
||
OnKeyFrameDataChanged ( ) : void |
Called internally when keyframes belonging to this track are changed, in order to trigger a rebuild of the animation splines.
|
|
Optimise ( ) : void |
Optimise the current track by removing any duplicate keyframes.
|
Method | Description | |
---|---|---|
BuildInterpolationSplines ( ) : void |
Used to rebuild the internal interpolation splines for translations, rotations, and scaling.
|
public Apply ( float time, float weight, bool accumulate, float scale ) : void | ||
time | float | The time position in the animation to apply. |
weight | float | The influence to give to this track, 1.0 for full influence, less to blend with /// other animations. |
accumulate | bool | |
scale | float | |
return | void |
public ApplyToNode ( |
||
node | ||
time | float | |
weight | float | |
accumulate | bool | |
scale | float | |
return | void |
protected BuildInterpolationSplines ( ) : void | ||
return | void |
public CreateKeyFrameImpl ( float time ) : |
||
time | float | |
return |
public CreateNodeKeyFrame ( float time ) : |
||
time | float | |
return |
public GetInterpolatedKeyFrame ( float time, |
||
time | float | The time (in relation to the whole animation sequence). |
kf | ||
return |
public GetNodeKeyFrame ( ushort index ) : |
||
index | ushort | |
return |
public NodeAnimationTrack ( |
||
parent | ||
return | System |
public NodeAnimationTrack ( |
||
parent | ||
target | ||
return | System |
public NodeAnimationTrack ( |
||
parent | ||
handle | ushort | |
return | System |
protected PositionalSpline positionSpline | ||
return | PositionalSpline |
protected RotationalSpline rotationSpline | ||
return | RotationalSpline |