- Home /
Register Particles going through Trigger collider
Hi, I am trying to affect particles which are passing through designated trigger colliders (box colliders).
The problem is that once I set a box collider as a trigger, the OnParticleCollision event doesn´t fire up when particle passes through it. I don´t want particle to be deflected by collider.
Is it possible? OnTriggerEnter event doesnt work with particles?
Thanks.
Answer by MrYOLO · Feb 27, 2014 at 09:27 AM
Hi, there. I did some test on unity, and the function OnParticleCollision for paticle system doesn't work if you check the Is Trigger of your box collider. And there's seem no way to trigger OnParticleCollision while not deflecting the particle at the same time. But you can try to make the box collider smaller then it wont deflect most of the particle also callback the OnParticleCollision function. I don't know why you want to do this, but I'm sure there 's a better way to get your target. God Luck!
Let´s say I want to change color of particles which passed specific destination. How would you do it?
If i were you, I'll put a detector there then get the the position of each particle, and see if it passed the specific destination then change the color of it if it's so.
you can put a gameobject where you judge if the particle passed the specific destination by comparing their coordinates.
That sounds doable. I hope I can figure it out. Thanks for directions. Sorry I can´t recommend your answer, my rep too low.
Your answer
Follow this Question
Related Questions
OnTriggerEnter2d() Not Triggering While Animating. 1 Answer
Activating animation by a moving trigger 0 Answers
OnTrigger event when colliders are already touching eachother 1 Answer
Compound Triggers with no intermediary exit calls 1 Answer
Character collider falls away unless "isTrigger" selected 1 Answer