PDA

View Full Version : nParticles


chandanG
03-01-2011, 02: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.

Thanks

ginodauri
03-01-2011, 03:10 PM
You have two solutions i know off.
1.
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.

2.
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-01-2011, 03: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.