Tidy Tile Mapper‎ > ‎Runtime API‎ > ‎BlockUtilities‎ > ‎

GetMathematicalPosition

Returns the mathematically-derived local position of the coordinates in the given map.

This is exceptionally useful for creating interpolated pathing behaviours and such.

Note: This does not work on maps that have been manipulated using the Soft Selection tool! This is mathematical only and will not factor the manipulation of individual Block positions at a Transform level.

Definition:

Vector3 GetMathematicalPosition(BlockMap map, int x, int y, int depth)

Return value Description
Vector3 A local position relative to the BlockMap for this coordinate.

Argument DataType Description
map BlockMap The BlockMap from which you wish to derive a mathematical Block position.
x int The x Block coordinate.
y     int The y Block coordinate.
depth int The depth (z) Block coordinate.

Comments