Hello, I am using an isometric TileMap that fakes 3D space by using layers as an up/down axis, and by offsetting tiles in higher layers upwards so that they appear above the layers below.
I also have an AStar3D for calculating paths between tiles on the TileMap.
I want to animate a sprite following this path, and I think this requires me to translate a given AStar3D position into a TileMap tile+layer coordinate, into the tile's local position on the map, into a global position to give the sprite to use for position lerps.
I am having trouble with TileMap's map_to_local() method because it only returns the local position of the tile's center, but I want to be able to get local positions offset from the tile center too, since sprites might not always be initiating paths from the center of a tile. map_to_local() expects a Vector2i, but I want to be able to input a Vector2.
Is there a better way of doing what I'm trying to do? Thanks!