常用的转换坐标方法
transform.InverseTransformPoint(Vector direction);
transform.TransformPinot(Vector direction);
transform.TransformVector(Vector direction);
transform.InverseTransformVector(Vector direction);
transform.TransformDirection(Vector direction);
transform.InverseTransformDirection(Vector direction);
世界坐标转屏幕坐标
Vector 3 wToS = Camera.main.WorldToScreenPoint(Ventou direction)
屏幕坐标转世界坐标
Vector 3 wToS = Camera.main.ScreenToWorldPoint(Ventou direction)
视口坐标转屏幕坐标
Vector 3 sToV= Camera.main.ViewportToScreenPoint(Ventou direction)
屏幕坐标转视口坐标
Vector 3 vToS= Camera.main.ScreenToViewportPoint(Ventou direction)
世界坐标转视口坐标
Vector 3 vToS= Camera.main.WorldToViewportPoint(Ventou direction)
视口坐标转世界坐标
Vector 3 vToS= Camera.main.ViewportPointToWorld(Ventou direction)