adrien-bon / bevy_ecs_tiled

Helpers for working with 2D tilemaps created with the Tiled map editor
MIT License
34 stars 8 forks source link

fix(#11): fix objects positioning in general and specifically when using MapPositioning::Centered #19

Closed adrien-bon closed 3 months ago

adrien-bon commented 3 months ago

Fix objects positioning in general.

Before this change, objects were all spawnd at coordinates (0,0) and only their colliders (if any) had a meaningful transform. Now, we instead set a correct transform for all objects and colliders inherit from this transform (since they are spawned as a child of the object entity).

This also fixes #11.