Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cbrown1234 opened this issue Dec 24, 2023 · 1 comment · May be fixed by #501
Closed

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

cbrown1234 opened this issue Dec 24, 2023 · 1 comment · May be fixed by #501
Labels
wontfix This will not be worked on

Comments

@cbrown1234
Copy link

cbrown1234 commented Dec 24, 2023

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

cbrown1234 added a commit to cbrown1234/bevy_ecs_tilemap that referenced this issue Dec 24, 2023
@StarArawn StarArawn added the wontfix This will not be worked on label Feb 11, 2024
@StarArawn
Copy link
Owner

Keep in mind this is an example and not meant to be fully functional. As long as the examples look fine and render correctly that is good enough. I'm more than happy to help in the creation of a bevy_tiled crate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants