Vixen
02b45cc4

XrReferenceSpace

enum Core/Vixen.Xr/XrTypes.cs:45
csharp
public enum XrReferenceSpace

What poses are measured relative to.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Three, which is what OpenXR guarantees and what a game actually distinguishes between. Stage is the one a room-scale game wants: its origin is on the floor at the centre of the play area and it does not move, so a chair placed in the world stays where the player left it.

Local is the seated case — the origin is wherever the headset was when the session started, at eye height — and View is head-locked, which is for a reticle and almost nothing else.

Fields and properties (3)

  • Local

    Fixed relative to the headset's pose when tracking began. Seated experiences.

  • Stage

    Fixed to the floor of the play area. Room-scale experiences.

  • View

    Moves with the headset. For things that must not be looked away from.

Used by (4)

  • IXrSessionVixen.Xr
  • NullXrSessionVixen.Xr
  • OpenXrSessionVixen.Xr.OpenXR
  • XrSessionOptionsVixen.Xr