Instance Methodmigueldeicaza.swiftgodot 0.45.0SwiftGodot
getActionSets
Returns a list of action sets registered with Godot (loaded from the action map at runtime).
OpenXRInterface.swift:543final func getActionSets() -> GArray
Other members in extension
Types
Type members
Instance members
var displayRefreshRate: Double
The display refresh rate for the current HMD. Only functional if this feature is supported by the OpenXR runtime and after the interface has been initialized.
var foveationDynamic: Bool
Enable dynamic foveation adjustment, the interface must be initialized before this is accessible. If enabled foveation will automatically adjusted between low and
foveationLevel
.var foveationLevel: Int32
Set foveation level from 0 (off) to 3 (high), the interface must be initialized before this is accessible.
var poseRecentered: SimpleSignal
Informs the user queued a recenter of the player position.
var renderTargetSizeMultiplier: Double
The render size multiplier for the current HMD. Must be set before the interface has been initialized.
var sessionBegun: SimpleSignal
Informs our OpenXR session has been started.
var sessionFocussed: SimpleSignal
Informs our OpenXR session now has focus.
var sessionStopping: SimpleSignal
Informs our OpenXR session is stopping.
var sessionVisible: SimpleSignal
Informs our OpenXR session is now visible (output is being sent to the HMD).
func getAvailableDisplayRefreshRates(
) -> GArray Returns display refresh rates supported by the current HMD. Only returned if this feature is supported by the OpenXR runtime and after the interface has been initialized.
func getHandJointAngularVelocity(hand: OpenXRInterface.Hand, joint: OpenXRInterface.HandJoints
) -> Vector3 If handtracking is enabled, returns the angular velocity of a joint (
joint
) of a hand (hand
) as provided by OpenXR. This is relative toXROrigin3D
!func getHandJointFlags(hand: OpenXRInterface.Hand, joint: OpenXRInterface.HandJoints
) -> OpenXRInterface.HandJointFlags If handtracking is enabled, returns flags that inform us of the validity of the tracking data.
func getHandJointLinearVelocity(hand: OpenXRInterface.Hand, joint: OpenXRInterface.HandJoints
) -> Vector3 If handtracking is enabled, returns the linear velocity of a joint (
joint
) of a hand (hand
) as provided by OpenXR. This is relative toXROrigin3D
without worldscale applied!func getHandJointPosition(hand: OpenXRInterface.Hand, joint: OpenXRInterface.HandJoints
) -> Vector3 If handtracking is enabled, returns the position of a joint (
joint
) of a hand (hand
) as provided by OpenXR. This is relative toXROrigin3D
without worldscale applied!func getHandJointRadius(hand: OpenXRInterface.Hand, joint: OpenXRInterface.HandJoints
) -> Double If handtracking is enabled, returns the radius of a joint (
joint
) of a hand (hand
) as provided by OpenXR. This is without worldscale applied!func getHandJointRotation(hand: OpenXRInterface.Hand, joint: OpenXRInterface.HandJoints
) -> Quaternion If handtracking is enabled, returns the rotation of a joint (
joint
) of a hand (hand
) as provided by OpenXR.func getMotionRange(hand: OpenXRInterface.Hand
) -> OpenXRInterface.HandMotionRange If handtracking is enabled and motion range is supported, gets the currently configured motion range for
hand
.func isActionSetActive(name: String
) -> Bool Returns
true
if the given action set is active.func isEyeGazeInteractionSupported(
) -> Bool Returns the capabilities of the eye gaze interaction extension.
func isFoveationSupported(
) -> Bool Returns
true
if OpenXR’s foveation extension is supported, the interface must be initialized before this returns a valid value.func isHandTrackingSupported(
) -> Bool Returns
true
if OpenXR’s hand tracking is supported and enabled.func setActionSetActive(name: String, active: Bool
) Sets the given action set as active or inactive.
func setMotionRange(hand: OpenXRInterface.Hand, motionRange: OpenXRInterface.HandMotionRange
) If handtracking is enabled and motion range is supported, sets the currently configured motion range for
hand
tomotionRange
.