- Home /
Question by
pinkhair · Aug 21, 2014 at 07:59 PM ·
c#particlesystemshurikenonparticlecollision
How can I get the specific particle of an OnParticleCollision?
Is there a way to get the specific particle that caused a OnParticleCollision event, so as to then either alter the particle or retrieve more information about it than supplied by the collision event? For instance, if I wanted to duplicate any particles that hit in one place elsewhere, or change the properties of a colliding particle?
Comment
I was looking for the same think a couple of weeks back, and never found a direct mapping. Given you have the world position of the hit, and a array of particles with size and position, you could figure it out. Just a simple distance check would find the right particle most of the time.