- Home /
Spawn Prefab at Particle Collision
So this is my script: var collidoffect : GameObject;
function OnParticleCollision (other : GameObject) {
Instantiate(collidoffect,transform.position, transform.rotation); }
}
How do I set it so it spawns directly at the collision point
Comment
I don't know the exact code but try to research raycast :)
Your answer
![](https://koobas.hobune.stream/wayback/20220613092926im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Prticle collision point 1 Answer
Transform.Position Collision Issue 0 Answers
Destroy an instantce of a prefab object 1 Answer
Collision between two moving clones 0 Answers
I want instantiated object to stick with in-scene object 1 Answer