using UnityEngine; using System.Collections; public class addVelocity: MonoBehaviour { // Use this for initialization void Start () { FireRocket (); } // Update is called once per frame void Update () {} void FireRocket () { //this.gameObject.rigidbody.velocity = transform.forward * 10;// speed; gameObject.rigidbody.velocity = new Vector3(0, 10, 0); } }