Skip to content

Fix tiled helper map location propagation#501

Open
cbrown1234 wants to merge 1 commit into
StarArawn:mainfrom
cbrown1234:issue-500
Open

Fix tiled helper map location propagation#501
cbrown1234 wants to merge 1 commit into
StarArawn:mainfrom
cbrown1234:issue-500

Conversation

@cbrown1234
Copy link
Copy Markdown

fixes #500

Comment thread examples/helpers/tiled.rs
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
Copy Markdown
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