CameraRig.GetCoordAt C# (CSharp) Method

GetCoordAt() private method

Gets the tile coordinate at screenPosition.
private GetCoordAt ( Vector3 screenPosition ) : Vector3
screenPosition Vector3 /// Screen position. ///
return 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;
	}