private GetCoordAt ( Vector3 screenPosition ) : Vector3 | ||
screenPosition | Vector3 | /// Screen position. /// |
Résultat | Vector3 |
private Vector3 GetCoordAt(Vector3 screenPosition)
{
VectorHelpers.GetIntersectionOnPlane(Camera.main.ScreenPointToRay(screenPosition), m_groundPlane, out m_intersectionPoint);
m_intersectionPoint.x = Mathf.FloorToInt(m_intersectionPoint.x);
m_intersectionPoint.z = Mathf.FloorToInt(m_intersectionPoint.z);
return m_intersectionPoint;
}