AudioListener.Forward Property

Gets or sets the forward orientation vector for this listener.

Namespace: Microsoft.Xna.Framework.Audio
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public Vector3 Forward { get; set; }

Property Value

The forward orientation vector.

By default, this value is Vector3.Forward. In most cases, it is not necessary to modify this value.

Doppler values between an AudioEmitter and an AudioListener are calculated by the relationship between AudioListener.Velocity and AudioEmitter.Velocity with respect to the axes defined by the Forward and Up vectors of each.

The values of the Forward and Up vectors must be orthonormal (at right angles to one another). Behavior is undefined if these vectors are not orthonormal.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone

Community Additions