AudioListener.Forward Property (Microsoft.Xna.Framework.Audio)

Gets or sets the listener's forward vector.

Namespace: Microsoft.Xna.Framework.Audio
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public Vector3 Forward { get; set; }

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Property Value

Type: Microsoft.Xna.Framework.Vector3
Defaults to Vector3.Forward. (new Vector3(0, 0, -1))Used with AudioListener.Velocity and AudioEmitter.Velocity to calculate Doppler values.The Forward and Up vectors must be orthonormal.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop