- Home /
Detecting Collision points of particles?
Hello, I am currently in progress of adding Mallikii Rain to the game I am producing, It is a golden rain, that emits light and when contacts an gameObject collider. It will spawn in or create visible light at the point of collision by instantiating a prefab that only lasts about 3 frames. My Question is...Does anyone have a script or any bit of code that will get me the individual collision points of each particle When it collides?
I have no idea how to get the collision points for the particles and then either move one gameobject (The light) or instantiate and destroy it repeatedly(I know how to instantiate and destroy, Getting the collision points is whats bothering me) Im using a legacy particle system.
Im actually not bad at coding, I just dont understand the particle coding aspect.
Answer by Cherno · Jul 19, 2015 at 08:34 PM
OnParticleCollision should have what you need. The ParticleCollisionEvent has a member intersection.
How would I get that in working order, cause using arrays for each collision and each particle is what confuses me. Ive tried figuring out arrays but they simply confuse the crap out of me.
I never used it, you might just have to put in some time and effort and modify the provided example to suit your needs.
Okay Thanks For the help. I looked at On PARTICLE collision. The intersection is what helped me as i went into some of the sublinks their and found the information i needed Thanks Cherno
Your answer
Follow this Question
Related Questions
Particle collisions without physics force 1 Answer
JS access spherecast position 1 Answer
How do I "remove/disable" collision? 3 Answers
take control over particles 0 Answers
Make particles be affected by collisions (not go through objects)? 1 Answer