dimforge / bevy_rapier

Official Rapier plugin for the Bevy game engine.
https://rapier.rs
Apache License 2.0
1.28k stars 259 forks source link

Enable custom collider shapes #550

Open Neo-Zhixing opened 4 months ago

Neo-Zhixing commented 4 months ago

This PR proposes some changes to enable custom colliders in bevy_rapier.

Requires https://github.com/dimforge/parry/pull/217 Requires https://github.com/dimforge/parry/pull/216

Vrixyz commented 4 months ago

Thanks ! the diff looks appealing ! More features less code đź‘Ť

I'd love an example and a changelog line to accompany this

Neo-Zhixing commented 4 months ago

Note that this isn’t really less code, I just think that it’s a better idea to move the scaling code to the rapier::Shape trait so that custom shapes can more easily implement its own logic about scaling.

On example and changelog: We can add the examples after I put out the PR for custom QueryDispatcher.

Neo-Zhixing commented 4 months ago

@Vrixyz This should be ready to merge now.