ID3DXAnimationController::KeyTrackSpeed method
Sets an event key that changes the rate of play of an animation track.
Syntax
D3DXEVENTHANDLE KeyTrackSpeed(
[in] UINT Track,
[in] FLOAT NewSpeed,
[in] DOUBLE StartTime,
[in] DOUBLE Duration,
[in] D3DXTRANSITION_TYPE Transition
);
Parameters
-
Track [in]
-
Type: UINT
Identifier of the track to modify.
-
NewSpeed [in]
-
Type: FLOAT
New speed of the animation track.
-
StartTime [in]
-
Type: DOUBLE
Global time key. Specifies the global time when the change will take place.
-
Duration [in]
-
Type: DOUBLE
Transition time, which specifies how long the smooth transition will take to complete.
-
Transition [in]
-
Type: D3DXTRANSITION_TYPE
Specifies the transition type used for transitioning between speeds. See D3DXTRANSITION_TYPE.
Return value
Type: D3DXEVENTHANDLE
Event handle to the priority blend event. NULL is returned if one or more of the input parameters is invalid, or no free event is available.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also