GridMap.worldToMap

Returns the coordinates of the grid cell containing the given point. pos should be in the GridMap's local coordinate space.

struct GridMap
@nogc nothrow const
Vector3
worldToMap
(
in Vector3 pos
)

Meta