Skip to content

TilePos world location is not aligned with the drawn location in the tiled helper #500

@cbrown1234

Description

@cbrown1234

e.g. the following would return the world location ignoring the transform from here:

transform: get_tilemap_center_transform(
&map_size,
&grid_size,
&map_type,
layer_index as f32,
) * Transform::from_xyz(offset_x, -offset_y, 0.0),

or in the TiledMapBundle and defaulting to the bottom left at 0,0.

tile_pos.center_in_world(grid_size, map_type)

resulting in the world position of the tile entity not aligning with the drawn location

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions