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

Fix tiled helper map location propagation #501

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cbrown1234
Copy link

fixes #500

@@ -365,6 +369,9 @@ pub fn process_loaded_maps(
})
.id();
tile_storage.set(&tile_pos, tile_entity);
// Make tiles transform relative to layer transform,
// to ensure they have correct world_pos aligned with drawn location
commands.entity(layer_entity).add_child(tile_entity);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiles don't have bevy transforms. This wont do what you want it to here. Due to how bevy's transform propagation works it would be incredible slow to have each tile have a bevy transform so I can't recommend that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TilePos world location is not aligned with the drawn location in the tiled helper
2 participants