Change particle material on collision between two tyIcons?
#1
Trying to setup a sim with two tyIcons outputting particle 'balls', one is Yellow, the other Blue..
I've tried different setups using (hidden) colliders which when encounters will change the material to Green, however that workflow doesn't take into account the two emitter particles colliding BEFORE colliding with the change object..

Ideally I need the particles/balls from both emitters to change materiel to green, which I've setup as a multi-sub material with ID's on impact with each other..

Attachments included to illustrate current setup..
00 - shows the balls entering into a container box..
02 - shows balls with inter-collisions and the box filling..
03 - are wires showing emitter tyIcons..

As is shown all the balls are yellow and blue, but I'd like for the sim to change their color/mat on colliding with the alternate emitter, yellow colliding with blue = green/mat..
Again, I've been able to change the material when the balls hit a hidden collision object and even the container itself, however in a larger sim the balls collide before encountering hidden object or the container..

I'm certain TyFlow can do this and it may be a simple operation but at this point I've wrung my brains silly and decided to post here..
Any info or direction is greatly appreciated..

best.. dp..

   
   
   
  Reply
#2
I haven't the flow in front of my, but generally you send them into a new event at collision and they get a new material assigned.
(The collision operator has an extra output for it)
Or you use a property test: You test if there has been a collision with certain particles and send them into a new event.

You can also assign (and change) particle group IDs in order to mark certain particles, which can help to filter them or test if they have been colliders...
  Reply


Forum Jump: