- Home /
Instantiate gameobject on random position on 1. a graph and 2. another gameobject
Hi fellow developers,
I have a problem. I'm developing a 2D top-down shooter and want to instantiate a bullet hole on an enemy (circle shaped) if a bullet hits it. This bullet hole should get spawned on a random position on 1. the straight graph the bullet flew on and 2. the enemy gameobject.
I can't wrap my head around it. Thank you for any answers :)
Comment