docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor XRRaycast

    XRRaycast(TrackableId, Pose, TrackingState, IntPtr, float, TrackableId)

    Constructs an XRRaycast.

    Declaration
    public XRRaycast(TrackableId trackableId, Pose pose, TrackingState trackingState, IntPtr nativePtr, float distance, TrackableId hitTrackableId)
    Parameters
    Type Name Description
    TrackableId trackableId

    The TrackableId of the trackable which was hit.

    Pose pose

    The session-space Pose of the intersection.

    TrackingState trackingState

    The tracking state of this raycast.

    IntPtr nativePtr

    A pointer into native memory for this raycast.

    float distance

    The session-space distance from the raycast origin to the intersection point.

    TrackableId hitTrackableId

    The TrackableId of the trackable hit by this raycast, or invalidId if none.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023