particle collision with object? 2003-12-12 - By Roto Monkey
Back garyc writes: > Hi, I was wondering if there is a mechanism for identifying when objects > have been hit by particles, basically if I can I would like to capture these > hits and add a small impulse movement to the object. I`m thinking of > something like firing (particles) at bottles on a wall, bottles that get hit > fall off ....................... I have not seen anything like this in my > travels so I thought I would ask here .... > > thanks again. > > gary. > >
You probably want to look at a collision event procedure. You must set it up to take three arguments:
global proc collisionProc ( string $partShape, // the particle object int $id, // the id of the particle in question string $geoShape // the geometry in the collision ) {
print ("particle object: " + $partShape + "\n"); print ("with ID number: " + $id + "\n"); print ("is colliding with: " + $geoShape + "\n");
}
After that, add collisionProc to the Event Procedure field in the Collision Events editor (or use the 'event' mel command).
Lemme know if you need any help with it.
cb
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ______ Chris Burrows http://www.blueskystudios.com Se?or Technical Director cb@(protected) Blue Sky Studios
"The fact that no one understands you doesn't mean you're an artist."
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- List-help: <mailto:listar@(protected)?Subject=help> List-archive: <http://www.highend3d.com/maya/devarchive/>
|
|