获取射线 Ray ray = cam.getPickRay(screenX, screenY); 计算距离 Vector3 position = new Vector3(); ray.origin.dst2(position);