Class OpenXRPoseAction
Represents an OpenXR action of type XR_ACTION_TYPE_POSE_INPUT.
Inherited Members
Namespace: Evergine.OpenXR.InputTracking.Actions
Assembly: Evergine.OpenXR.dll
Syntax
public class OpenXRPoseAction : OpenXRAction<ViewPose>
Constructors
OpenXRPoseAction(OpenXRPlatform, XrActionSet, ulong[], string, string)
Initializes a new instance of the OpenXRPoseAction class.
Declaration
public OpenXRPoseAction(OpenXRPlatform openXRPlatform, XrActionSet xrActionSet, ulong[] subActionPaths, string actionName, string localizedActionName)
Parameters
Type | Name | Description |
---|---|---|
OpenXRPlatform | openXRPlatform | The OpenXR platform. |
XrActionSet | xrActionSet | The OpenXR action set. |
ulong[] | subActionPaths | The sub-action paths for this action. |
string | actionName | The action name. |
string | localizedActionName | The localized action name. |
Fields
ActionSpaces
Gets the action spaces (one per subActionPath) needed to get the pose of the actions.
Declaration
public XrSpace[] ActionSpaces
Field Value
Type | Description |
---|---|
XrSpace[] |
Methods
Destroy()
Destroys all resources of this instance.
Declaration
protected override void Destroy()
Overrides
GetPose(uint, long, out ViewPose)
Gets the pose.
Declaration
public bool GetPose(uint subPathIndex, long predictedDisplayTime, out ViewPose viewPose)
Parameters
Type | Name | Description |
---|---|---|
uint | subPathIndex | The subPass index. |
long | predictedDisplayTime | The predicted time. |
ViewPose | viewPose | The output view pose. |
Returns
Type | Description |
---|---|
bool | Whether the pose has been obtained successfully. |
GetPoseAndVelocityInfo(uint, long, out ViewPose, out Vector3, out Vector3)
Gets the pose and velocity information.
Declaration
public bool GetPoseAndVelocityInfo(uint subPathIndex, long predictedDisplayTime, out ViewPose viewPose, out Vector3 linearVelocity, out Vector3 angularVelocity)
Parameters
Type | Name | Description |
---|---|---|
uint | subPathIndex | The subPass index. |
long | predictedDisplayTime | The predicted time. |
ViewPose | viewPose | The output view pose. |
Vector3 | linearVelocity | The linear velocity of this pose. |
Vector3 | angularVelocity | The angular velocity of this pose. |
Returns
Type | Description |
---|---|
bool | If the pose has been obtained successfully. |