IDirect3DRMAnimation::AddPositionKey
HRESULT AddPositionKey(D3DVALUE rvTime, D3DVALUE rvX,
D3DVALUE rvY, D3DVALUE rvZ);
Adds a position key to the animation.
·Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.
rvTime
Time in the animation to store the position key. The time units are arbitrary and zero-based; a key whose rvTime value is 49 occurs exactly in the middle of an animation whose last key has an rvTime value of 99.
rvX, rvY, and rvZ
Position.
The transformation applied by this method is a translation. For information about the matrix mathematics involved in transformations, see 3D Transformations.