C4 Engine
C4 Engine API Documentation

SoundMgr::GetListenerVelocity

Defined in:  C4Sound.h
Returns the listener's 3D velocity.
Prototype

const Vector3D& GetListenerVelocity(voidconst;

Description
The GetListenerVelocity function returns the listener's 3D velocity in world space coordinates. 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

SoundMgr::SetListenerVelocity

Sound::GetSoundVelocity

Sound::SetSoundVelocity