Let your children collide! Multi object collision problem
I had an idea to create a "character" that consists of a group of cubes.
Using 1 'main' script these cubes would change configuration and relative position in the game depending on the task at hand. Sometimes it would be a star pattern, or an active sinewave or sometimes just a row or 1 big cube,...
I wanted to group these cubes under 1 GameObject but when I want to move that single GameObject (using AddForce or transform), the collision for each of the boxes doesn't work. I added box-colliders to each of the cubes and a rigidBody, and also a rigidBody on the main object. (yeah i read somewhere but how else can I move it properly?)
But the entire row just goes through the wall (which also has a Box Collision, isTrigger is off, Gravity as well)
I tried both box-collider and mesh-collider but I think it makes little difference. (the boxes would stay just 1x1x1 boxes anyway)
Am I missing something? I don't see any use right now in the fixed/spring joint components, mainly because they restrict the movement of each of the cubes which defeats the whole point.
Your answer
![](https://koobas.hobune.stream/wayback/20220612173831im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Object shakes on collide! 1 Answer
One textUI and two colliders that update it 0 Answers
Unity Ball moving inside the surface 0 Answers
Cloned objects not colliding with other objects (after upgrade to Unity 5.3) 1 Answer
Unity - creating a breakout style game - ball will not destroy blocks or be reset 0 Answers