Constructor XRRaycastHit
XRRaycastHit(TrackableId, Pose, float, TrackableType)
Constructs an XRRaycastHit.
Declaration
public XRRaycastHit(TrackableId trackableId, Pose pose, float distance, TrackableType hitType)
Parameters
Type | Name | Description |
---|---|---|
TrackableId | trackableId | The TrackableId of the trackable which was hit. |
Pose | pose | The session-space |
float | distance | The session-space distance from the raycast origin to the intersection point. |
TrackableType | hitType | The types of trackables which were hit by the ray. |