- Home /
Prticle collision point
Hey guys, how can i make something instantiate at the particle collison point...
Something like:
function OnParticleCollision (other : GameObject) {
Instantiate(fireStart, transform.position, transform.rotation); }
How do u make it instantiate where the particles hits? Sorry for my english...
Answer by Jesper Mortensen · Mar 18, 2013 at 08:04 AM
With Unity 4.2 the OnParticleCollision callback will be supported for the Shuriken particle system. In the callback you can call the function GetCollisionEvents(<...>) that will allow you to read back particle collision data. This will contain hitpoint (which you are after) as well as incident velocity and surface normal. Hope this helps.
Your answer
Follow this Question
Related Questions
Spawn Prefab at Particle Collision 0 Answers
get the point directly above the raycast collision? 1 Answer
How I can activate or deactivate a Particle with my keyboard? 2 Answers
What kind of datatype is a CollisionEvent? 2 Answers
How to draw a line to change the direction of water fall simulated by particle systems 0 Answers