AudioEmitter.Velocity Property
Gets or sets the velocity vector of this emitter.
Namespace: Microsoft.Xna.Framework.Audio
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public Vector3 Velocity { get; set; }
Property Value
The velocity vector.
Remarks
By default, the value of this property is Vector3.Zero.
The Doppler effect value applied to a Cue is based on the relative Velocity values of the AudioEmitter and AudioListener, scaled by the DopplerScale value.
The Velocity property is used only to calculate Doppler values. It is not applied to the Position vector or otherwise used to set game state. You must set Velocity and Position each frame to maintain accurate 3D audio values in your game.
See Also
Reference
AudioEmitter Class
AudioEmitter Members
Microsoft.Xna.Framework.Audio Namespace
Platforms
Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone