private Vector3 CalculateEndPoint() { var hit = XRDevice.isPresent ? VRUtils.RaycastVR() : Raycast(); return(hit.collider ? hit.point : DefaultPos()); }