Add bevy_rapier3d-based backend#55
Conversation
bevy_rapier3d backendbevy_rapier3d-based backend
|
I've been testing this more, and it seems that the actual trimesh colliders shouldn't be scaled by 0.5. I'm not sure what's going on, but this PR shouldn't be merged until I figure out what's up with scaling |
|
I had similar issue with custom implementation of Rapier backend, but I only support Cuboids yet. The problem was that Maybe it's similar API quirk |
|
Also, please make sure to include non-axis aligned objects in tests to cover rotations, and same for scale. All current tests have objects with defauit rotation and scale 😄 |
|
Oh, one more thing. Avian backend uses |

Since avian3d and bevy_rapier are pretty similar, rapier_rerecast turned out to be a pretty much a copy past of avian_rerecast with minor differences:
ColliderOf, so I have to find the body manually incollider_backend.impl ColliderToTriMesh for Collider, I have to scale the collider by 0.5, otherwise it is too big.I also took the liberty of adding the new backend to readme.
There is also a copy-past example for rapier_rerecast based on the avian example, and here is side-by-side comparison:
