Sound::SetSoundVelocity
Defined in:
Sets a sound's 3D velocity.
C4Sound.h
Prototype
void SetSoundVelocity(const Vector3D& velocity);
Parameters
velocity |
The 3D velocity, in units of meters per second. |
Description
The SetSoundVelocity
function sets the world-space velocity of the sound to the vector given by the velocity
parameter. The velocity is measured in units of meters per second. The listener's velocity is subtracted from the sound's velocity in order to calculate the Doppler effect.
See Also