Hi,
I’m using this script to Instantiate my objects:
var newobject : GameObject;
function OnTriggerEnter (other : Collider) {
var position1 = Vector3(Random.Range(-5, 5), 0, ?????);
Instantiate(newobject, position1, Quaternion.identity);
}
Where I’ve put the question marks above, instead of just putting a single value in is there a way I can say; make the newobject 20 meters in front of this one?
If I make any sense…
Thanks,
Stuart