PDA

View Full Version : Script upon impact


ikaris
09-01-2004, 02:11 AM
Hello everyone,

I would like to be able to run an expression or MEL script when an object collides with another.

For example, I would like to have an object perform a boolean on another object when it impacts with a surface, to simulate an object breaking up upon impact (but I want to use the boolean because I'd like it to be random every time, and not break my object up into pre-determied pieces, as one would expect).

Can anyone point me in the right direction ?

Thank you !

Zac256
09-01-2004, 05:04 AM
First of all, I'm not sure that a boolean is exactly what you are looking for, perhaps a shatter or something like that would suit the situation more. But anyhow, there is a free great video tutorial at www.thegnomonworkshop.com where Alex Alvarez goes over emitting particles at collision of rigid bodies. He briefly shows a way to run mel commands at collision events as well, which should be what you are looking for. It's a great tutorial go check it out.
-Zac

CGTalk Moderation
01-19-2006, 03: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.