targetRaySpace property

XRSpace get targetRaySpace

The read-only XRInputSource property targetRaySpace returns an XRSpace (typically an XRReferenceSpace) representing the position and orientation of the target ray in the virtual space. Its native origin tracks the position of the origin point of the target ray, and its orientation indicates the orientation of the controller device itself. These values, interpreted in the context of the input source's XRInputSource.targetRayMode, can be used both to fully interpret the device as an input source.

To obtain an XRSpace representing the input controller's position and orientation in virtual space, use the XRInputSource.gripSpace property.

Implementation

external XRSpace get targetRaySpace;