示例#1
0
        Vector3 GetLocalPointerPosition(Transform rayOrigin)
        {
            Vector3 hitPos;

            MathUtilsExt.LinePlaneIntersection(out hitPos, rayOrigin.position, rayOrigin.forward, -transform.forward,
                                               transform.position);

            return(transform.InverseTransformPoint(hitPos));
        }