Microsoft DirectX 8.0 (Visual Basic) |
object.SetVelocity( _ x As Single, _ y As Single, _ z As Single, _ applyFlag As CONST_DS3DAPPLYFLAGS)
If the method fails, an error is raised and Err.Number may be set to DSERR_INVALIDPARAM.
The default velocity is (0,0,0).
Velocity is used only for Doppler effects. It does not move the listener. To change the listener's position, use the DirectSound3DListener8.SetPosition method.
DirectSound3DListener8.GetVelocity, Listener Position and Velocity