Collision of composite spheres bouncing inside container

Hi,
I’m new to Babylon. I would like to create a container in which I want to create meshes that go around confined to the container. The number of meshes in the container could number between one to hundreds.

Each mesh is composed of other meshes so it should function as a container itself.

So if they reach the walls of the container they must be pushed back with a reflected position.

Finally I need to intercept the collisions between spheres.

Is there an example of such scenario?

Hi @ac70 welcome to the forum. Is this of use Babylon.js Playground

From Collisions Introduction - Babylon.js Documentation

1 Like

Hi @JohnK, thank you very much, that’s exactly what I need!!!

1 Like