dimforge / bevy_rapier

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

Collider doesn't update upon reparent #486

Open Multirious opened 7 months ago

Multirious commented 7 months ago

This is happening in my game where I'm attempting to reparent a collider to make a "merging" behavior for my game mechanic.

Looking through bevy_rapier systems there doesn't seems to be any check for reparenting.

Multirious commented 7 months ago

Workaround that add and remove collider doesn't work or I don't know how to make it to work.

Edit: Got it to work. Had to delay collider re-adding by 1 frame but it's pretty janky since collider missing is visible for 1 frame for the user.