#Child entities are automatically inserted into Rapier?

4 messages · Page 1 of 1 (latest)

west axle
#

I have a bunch of child entities, whose parent is a collider and rigid body, but I want them to just mirror the effect of whatever happens to the parent. Instead, they seem to act like they are their own thing inside the physic engine (Bevy Rapier btw). Any idea how I can stop this behaviour from happening? I just want them to follow the parent, not to do weird stuff among themselves...

sand stump
#

Bevy hierarchy may not be what you want when multiple rigidbodies are involved, you’re more likely to want joints, or implement the « logic for following » yourself.

west axle
#

But that's the thing: I do not really have multiple Rigid Bodies. I just want 1 Rigid Body, the parent, and the children following it as usual. I briefly read about Joints and it appears they are used indeed when multiple rigid bodies are involved.

sand stump
#

That’s surprising then, what are your child entities ? Do you have code to share ?