C4 Engine Terathon Software C4 Engine API Documentation

• Sound Manager

API Links
Developer Links

SoundMgr::SetListenerVelocity

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

void SetListenerVelocity(const Vector3D& velocity);

Parameters
velocity The listener's velocity in units of meters per second.
Description
The SetListenerVelocity function sets the listener's 3D velocity in world space coordinates to the vector given by the velocity parameter. 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::GetListenerVelocity

Sound::GetVelocity

Sound::SetVelocity