C4 Engine
C4 Engine API Documentation

Sound::SetSoundVelocity

Defined in:  C4Sound.h
Sets a sound's 3D velocity.
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

Sound::GetSoundVelocity

SoundMgr::GetListenerVelocity

SoundMgr::SetListenerVelocity