A collection of useful functions for skeletal mesh animation.
Computes the 'height' of each track, relative to a given animation linkup.
The track height is defined as the minimal number of bones away from an end effector (end effectors are 0, their parents are 1, etc...)
- Parameters
-
| AnimLinkup | The animation linkup |
| NumTracks | The number of tracks |
| TrackHeights | [OUT] The computed track heights Checks a set of key times to see if the spacing is uniform or non-uniform. Note: If there are as many times as frames, they are automatically assumed to be uniformly spaced. Note: If there are two or fewer times, they are automatically assumed to be uniformly spaced. |
| NumFrames | The number of frames in the source animation data |
| Times | The array of key times |
- Returns
- true if the keys are uniformly spaced (or one of the trivial conditions is detected). false if any key spacing is greater than 1e-4 off.
Computes the 'height' of each track, relative to a given animation linkup.
The track height is defined as the minimal number of bones away from an end effector (end effectors are 0, their parents are 1, etc...)
- Parameters
-
| BoneData | The bone data to check |
| NumTracks | The number of tracks |
| TrackHeights | [OUT] The computed track heights Checks a set of key times to see if the spacing is uniform or non-uniform. Note: If there are as many times as frames, they are automatically assumed to be uniformly spaced. Note: If there are two or fewer times, they are automatically assumed to be uniformly spaced. |
| AnimSeq | The animation sequence the Times array is associated with |
| Times | The array of key times |
- Returns
- true if the keys are uniformly spaced (or one of the trivial conditions is detected). false if any key spacing is greater than 1e-4 off.