interactionRay property

Ray get interactionRay

Borrowed world ray shared by gameplay and explicit selection.

Implementation

Ray get interactionRay {
  if (_hasExternalInteractionRay) return _interactionRay;
  spatialInput.writeRay(
    _interactionRay,
    origin: cameraRig.position,
    forward: cameraRig.headTransform.forward,
    screenRight: cameraRig.headTransform.right,
    up: cameraRig.headTransform.up,
  );
  return _interactionRay;
}