How to add colliders to containers?

Hello,
During the game, I create some “dudes” with text in a container every second.
Those containers have “gravity” set.
I need to prevent collisions to these containers (I don’t want overlap).
I tried many times to add colliders to these containers but it doesn’t work and I can’t find example.
Thanks for your help.
Here is my CODEPEN.
Anthony

1 Like

game objects/container/arcade physics body test

Hello @samme
Thank you, but I 've already seen this example and it doesn’t fit my needs (maybe I’m wrong) :

  • the containers with dudes are created dynamicly in a loop
  • I just need to check collisions between the dudes (not with the world)
    I you have another idea…