I have problem … when i have multiple bullets spawn on the scene when i try to instansiete explosion effect the positon of the efect is not the bullet which hit the collisonbox but the newest one … dunno how to bypass it
this is my instansiateon of the explosion effect code
[RPC]
void ExplosionParticle() {
Instantiate( explosion, transform.position , Quaternion.identity );
}
i tryed to do it with
position = collision.contacts [0].point;
but now when 2 bullets at scene there is no exploision effect …
( works if only 1 bullet at the same time on scene )