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);
		
  
	}
}

By admin-powenko

Dr. Powen Ko is a teacher and CEO on LoopTek LLC, and like to teaching. if you need to class, please let PowenKo know, he will love to service and sharing. LoopTek web site is www.looptek.com

Leave a Reply