Microsoft SDK for Java

getVelocity

This method of the Direct3dRMFrame Class retrieves the velocity of the frame, relative to the given reference frame.

Syntax

public void getVelocity(Direct3dRMFrame ref, D3dVector vel, int rotation);

Parameters

ref The Direct3dRMFrame object to be used as the reference.
vel A D3dVector object that receives the frame's velocity.
rotation A flag specifying whether the rotational velocity of the object is taken into account when retrieving the linear velocity. If this parameter is true, the object's rotational velocity is included in the calculation.

See Also

setVelocity

© 1999 Microsoft Corporation. All rights reserved. Terms of use.