I have previously made space shooter shooting systems, and FPS grenades, but now I am trying to make a missile that will be launched from a plane. I am new to Unity and can't figure out how to make it travel forward in the direction it's fired.
var bomb : GameObject;
var explosion : GameObject;
function Update () {
if(Input.GetButtonDown("Jump")){
Instantiate(bomb,transform.position,transform.rotation);
}
}
This is all I have at the moment. Dont worry about "explosion", I know how to set that up. I can't figure out how to make it travel forward relative to it's own Z axis. Any help is appreciated.