TileToWorld
function · minimap · primitive
- Address
0x6da5b0· 44 bytes, up to0x6da5db- Signature
float * __fastcall (float *out, const int32_t *tile)- Meaning
- Writes the world position of a tile corner
- Confidence
- verified, proof one
- Finding
- minimap/coordinates#world-and-tile-maps
- Test
minimap::tile_to_world_difftest
Finding: World and tile maps in minimap: coordinates
TileToWorld(out, tile) writes the world position of a tile's corner: x = 17066.666 − tile[1] · 533.3333, y = 17066.666 − tile[0] · 533.3333 and z = 0.
WorldToTile(out, world) is its inverse: for each axis t = (17066.666 − w) · 0.001875, less 1.0 when t is negative so the cut is a floor, and
then truncated to an integer. tile[0] comes from the world y and tile[1] from the world x. Both return the output pointer.
The derivation is in the doc.
Callers 1
- WorldToScreenScale minimap
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.