Ray mouseRay = Camera.main.ScreenPointToRay(Input.mousePosition);
Vector3 newDotPosition =
mouseRay.origin - mouseRay.direction / mouseRay.direction.y * mouseRay.origin.y;
我看到newDotPosition是游戏对象在地形上的位置。但以下代码是做什么用的?
mouseRay.direction / mouseRay.direction.y * mouseRay.origin.y