C4 Engine Terathon Software C4 Engine API Documentation

• Sound Manager

API Links
Developer Links

Sound::GetVelocity

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

const Vector3D& GetVelocity(voidconst;

Description
The GetVelocity 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::SetVelocity

SoundMgr::GetListenerVelocity

SoundMgr::SetListenerVelocity