RotationMode

    XRServer.swift:77
    enum RotationMode

    Cases

    • case resetFullRotation

      Fully reset the orientation of the HMD. Regardless of what direction the user is looking to in the real world. The user will look dead ahead in the virtual world.

    • case resetButKeepTilt

      Resets the orientation but keeps the tilt of the device. So if we’re looking down, we keep looking down but heading will be reset.

    • case dontResetRotation

      Does not reset the orientation of the HMD, only the position of the player gets centered.

    Other members in extension

    View members

    Hide members

    This section is hidden by default because it contains too many (31) members.

    Types

    Type members

    Instance members

    • var interfaceAdded: Signal1

      Emitted when a new interface has been added.

    • var interfaceRemoved: Signal2

      Emitted when an interface is removed.

    • var referenceFrameChanged: SimpleSignal

      Emitted when the reference frame transform changes.

    • var trackerAdded: Signal3

      Emitted when a new tracker has been added. If you don’t use a fixed number of controllers or if you’re using XRAnchor3Ds for an AR solution, it is important to react to this signal to add the appropriate XRController3D or XRAnchor3D nodes related to this new tracker.

    • var trackerRemoved: Signal5

      Emitted when a tracker is removed. You should remove any XRController3D or XRAnchor3D points if applicable. This is not mandatory, the nodes simply become inactive and will be made active again when a new tracker becomes available (i.e. a new controller is switched on that takes the place of the previous one).

    • var trackerUpdated: Signal4

      Emitted when an existing tracker has been updated. This can happen if the user switches controllers.

    Citizens in SwiftGodot

    Conformances

    Type members

    Instance members

    Type features

    Instance features