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

Add an Avian2D physics backend #14

Closed adrien-bon closed 3 months ago

adrien-bon commented 3 months ago

We currently support rapier as a physics backend: we can automatically add colliders based on the Tiled map.

The idea would be to also add support for Avian2D which is another popular 'physic-related' crate.

giusdp commented 3 months ago

Hi, I've added avian2d to bevy_ecs_tiled locally to use for my projects. If it's fine for you I can open a PR to contribute it, but it might need some more polishing.

adrien-bon commented 3 months ago

Hi, yes please do ! :)

If you can put your code in a dedicated file under ./src/physics/avian.rs that would be nice. Don't worry about the polishing, I can try to help! The idea I had was to get more or less the same API as what we currently have for Rapier and the same kind of examples.

Thanks!