worldToIso method
Vector2
worldToIso(
- Vector2 world
Convert a world-space point directly to isometric screen-pixel
coordinates, ignoring screenSize scaling. Useful for tests
and gameplay code that speaks in "iso pixels".
Implementation
Vector2 worldToIso(Vector2 world) =>
Vector2(world.x - world.y, (world.x + world.y) * 0.5);