SoundMgr::SetListenerVelocity
Defined in:
Sets the listener's 3D velocity.
C4Sound.h
Prototype
void SetListenerVelocity(const Vector3D& velocity);
Parameters
velocity |
The listener's velocity in units of meters per second. |
Description
The SetListenerVelocity
function sets the listener's 3D velocity in world space coordinates to the vector given by the velocity
parameter. The listener's velocity is subtracted from the velocity of each sound when the doppler effect is calculated. The listener's velocity is measured in units of meters per second and is initially set to the zero vector.
See Also