PDA

View Full Version : Dynamics: crashing a ball into a wall and shattering it


ajitmenon
01-21-2003, 07:35 PM
I would like to know what techniques are necessary to create a shatter on collision effect... say a ball crashing into a wall and breaking it, resulting in shards from the wall splatterinjg around and leavijng a hole (dynamically generated) in the wall.

digital_rhino
01-21-2003, 09:09 PM
Well, one way to do it would be to add a shatter effect to your wall. make the shards active rigids, and make the ball active rigid. Make the parts of the wall you dont want to move, a passice rigid (so the ball still reacts to it if contact is made). Apply a field to the ball that would cause it to come in contact with the wall, and the shards should react to the contact. Of course, strength of your computer is a factor. I just tried to simulate it myself, so i could better explain it, and i crashed. So be careful how many shards you make with the shatter.

FloydBishop
01-22-2003, 03:35 AM
The problem with the dynamics combined with the shatter function is due to the individual shards being way too close to eachother. The fileds in the dynamics settings are trying to pull them apart but can't and thus the crash.

I would have two versions of the wall: one shattered, one not. Animate the visibility so that the unshattered one turns off on impact and is swapped with the shattered version.

I would also animate the shards by hand if there aren't too many. Otherwise, move the shards apart slightly before you get the dynamics going. Whatever works for your point of view, use it.

playmesumch00ns
01-22-2003, 09:32 AM
Yeah and the shatter function makes some funky geometry. If you want it looking realistic, you probably want to model individual bricks...

CGTalk Moderation
01-14-2006, 05:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.