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

Gets or sets the listener's up vector..

Namespace: Microsoft.Xna.Framework.Audio
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public Vector3 Up { 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.Up (New Vector3(0, -1, 0)).Used with AudioListener.Velocity and AudioEmitter.Velocity to calculate Doppler values.The values of the Forward and Up vectors must be orthonormal.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web