MAXON CINEMA 4D: Cinema 4D Forum Adobe After Effects Forum

# Wall of cubes rotate and react with each other

VIEW ALL
 Wall of cubes rotate and react with each other on Jan 3, 2012 at 1:44:03 am

Hi guys

I'm sure someone here has the answer. I just can't seem to hit this problem I'm having.

What I'm trying to do is make a wall of cubes rotate and react with each other. I've set up a cube, dropped it in a cloner, added a plain effector for the rotation and it all works a treat.

My problem is that the cubes overlap each other when they spin, as opposed to pushing each other out of the way upon impact when they rotate (the cubes are butted up against each other).

Short of doing this manually, is it possible with some soft of simulation... maybe a bit of Expresso?

Hope this makes sense and someone can shed a little light.

Cheers

Mike

miketosetto dot com | bestiacollective dot com

 Re: Wall of cubes rotate and react with each otheron Jan 3, 2012 at 1:48:39 am

do they all spin together at the same rate or is it random (or something else)?

 Re: Wall of cubes rotate and react with each otheron Jan 3, 2012 at 2:45:26 am

Hi Brian, the cubes rotate 90 degrees as I pass the Plain Effector with box falloff through the wall of cubes.

miketosetto dot com | bestiacollective dot com

 Re: Wall of cubes rotate and react with each otheron Jan 3, 2012 at 3:16:36 am

I thought perhaps the rotation parameter could drive the x position so the cubes move out of each others way but the only problem is that the rotation goes from 0 - 90 while I need the x position to go from 0 - new x pos and then back to 0.

Bit stuck with this solution...

miketosetto dot com | bestiacollective dot com

 Re: Wall of cubes rotate and react with each otheron Jan 3, 2012 at 4:31:55 am

You'll need to put a rigid body tag on the cloner if you want the cubes to react to each other. You'll also have to turn off gravity in the project settings (to keep them from falling) and then adjust the follow animation parameters in the dynamics tag to mix the mograph and dynamics animation.

 Re: Wall of cubes rotate and react with each otheron Jan 4, 2012 at 12:13:17 am

Hi Adam, that's awesome. Thanks for the solution :)

miketosetto dot com | bestiacollective dot com

 Re: Wall of cubes rotate and react with each otheron Jan 9, 2012 at 10:33:39 pm

could you please reach out to me at ikon crush@me.com please thank you
fairly new to c4d and am looking to do this for a project...