View Full Version : nParticles

03 March 2011, 03:14 PM
Hi everyone,
i m emitting nparticles which r colliding with two objects and i hv given particle collision event also to generate particles when it collides.Is it possible tht nparticle should collides with both the objects but emit particles from only one object after collision.


03 March 2011, 04:10 PM
You have two solutions i know off.
On collision event you have event procedure like this:

global proc myEventProc (string $particleObject, int $particleId, string $geometryObject) {Type MEL statements here;}

Where $geometryObject is collision object.
A then in this procedure you make to emit only when $geometryObject is your desired "collision/emission" object.

You have collisionGeometryIndex attribute on your particle object.

This attribute on frame of collision changes to number.This number is index of colliding object.

CGTalk Moderation
03 March 2011, 04:10 PM
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.