Home > Back-end >  Looking for a way to make a cube in which game objects bounce around
Looking for a way to make a cube in which game objects bounce around

Time:05-29

My question is quite simple. How do I make a cube which has other game objects inside of it, and can detect when those objects collide with sides of the cube. I can just use a collider for each of the sides but I want to be able to shrink and grow the cube while the program is running. If I used a collider for each of the sides I would have to move each of them individually. Is there a way to use just one collider on the cube?

CodePudding user response:

Place six flat cubes around with a thin collier box and then make parent them to an empty game object.

  • Related