Vector3 GetLocalPointerPosition(Transform rayOrigin) { Vector3 hitPos; MathUtilsExt.LinePlaneIntersection(out hitPos, rayOrigin.position, rayOrigin.forward, -transform.forward, transform.position); return(transform.InverseTransformPoint(hitPos)); }