Search Results for

    Show / Hide Table of Contents

    Class OpenXRPoseAction

    Represent a OpenXR action of type XR_ACTION_TYPE_POSE_INPUT.

    Inheritance
    object
    DisposableObject
    OpenXRAction
    OpenXRAction<ViewPose>
    OpenXRPoseAction
    Inherited Members
    OpenXRAction.ActionName
    OpenXRAction.LocalizedActionName
    OpenXRAction.OpenXRPlatform
    OpenXRAction.Action
    OpenXRAction.ActionType
    OpenXRAction.IsActive
    DisposableObject.Disposed
    DisposableObject.Dispose()
    DisposableObject.Dispose(bool)
    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 actionset.

    ulong[] subActionPaths

    The subaction paths for this action.

    string actionName

    The action name.

    string localizedActionName

    The localized action name.

    Fields

    ActionSpaces

    Gest 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()

    Destroy all resources of this instance.

    Declaration
    protected override void Destroy()
    Overrides
    OpenXRAction.Destroy()

    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

    If the pose has been obtained susscessfully.

    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 susscessfully.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX