C4 Engine
C4 Engine API Documentation

Sound::GetSoundVelocity

Defined in:  C4Sound.h
Returns a sound's 3D velocity.
Prototype

const Vector3D& GetSoundVelocity(voidconst;

Description
The GetSoundVelocity function returns the world-space velocity of the sound in units of meters per second. The listener's velocity is subtracted from the sound's velocity in order to calculate the Doppler effect. The initial velocity is the zero vector.
See Also

Sound::SetSoundVelocity

SoundMgr::GetListenerVelocity

SoundMgr::SetListenerVelocity