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