Child colliders added by a system seem not to be linked as children in Rapier #252
Labels
A-Integration
very bevy specific
C-Bug
Something isn't working
D-Medium
P-Medium
S-not-started
Work has not started
Example gist (based on the existing
player_movement2
example)In this example, pressing
Space
spawns new (unparented) colliders somewhere relative to the player transform, and pressingReturn
adds all unparented colliders as children of the player. Here is a brief recording of the example:bevy_rapier_example.mov
The main player collider does interact with the parentless colliders, (similar to if they were a Fixed Rigidbody, I think?), but once reparented, the colliders don't seem to interact with anything. Also, they are still colored as "parentless" by the debug renderer, which explains why their collisions are not impacting the parent's. This can be verified fairly easily with
RapierContext::collider_parent()
(none will be found even though there is a Rigidbody on the parent).Is this expected behavior, or am I doing something wrong in my example? Maybe this is just a gap in the system change detection, and a system is needed that watches for
HierarchyEvent
s on the relevant components, or something like that?The text was updated successfully, but these errors were encountered: