AudioListener.Up Property

Gets or sets the upward orientation vector for this listener.

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


public Vector3 Up { get; set; }

Property Value

The upward orientation vector.


By default, this value is Vector3.Up. 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.

See Also


AudioListener Class
AudioListener Members
Microsoft.Xna.Framework.Audio Namespace


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