Hello, i’m looking to instantiate an object above another objects position.
Basically in the game a the player will fire a projectile, when this projectile hits something, i want something to be spawned above where the first projectile hits.
I’m currently using the code
`function OnCollisionEnter(collision : Collision){
Destroy (gameObject);
Instantiate (boulder, boulderindicate.position, boulderindicate.rotation);
}`
This creates a version of my prefab ‘boulder’ directly at where the projectile hits. (boulderindicate being the projectile)