Problem with Compound Bodies

I am testing Compound Bodies.

Changing the position of the Compound Body changes the position of the child meshes on the screen, but does not actually change.
In case of collision with another mesh, collision occurs in the original position and all Compound Bodies instantly return to their original position.

Why is this happening?

Seems like an issue with the bidirectional update in the oimojs plugin. Cannon and ammo both work correctly:

Skull as a Compound Body | Babylon.js Playground (babylonjs.com)

And

Skull as a Compound Body | Babylon.js Playground (babylonjs.com)

Oimo hasn’t been updated in a long time. Would you consider using a different physics engine?
You can submit an issue on github, I am simply not sure when we will have the time to tackle this in the near future.

1 Like