PowenKo, Tutorial 009 , rigidbody, Velocity game object , add speed

August 31, 2011   ·   0 Comments

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

shareShare on FacebookShare on Google+Share on LinkedInEmail this to someonePrint this pageBuffer this pageDigg thisFlattr the authorShare on RedditPin on PinterestShare on StumbleUponShare on TumblrTweet about this on Twitter

By

Tags: , , , ,


Readers Comments (0)


You must be logged in to post a comment.

PowenKo’s Online Store

powenko_arduinoBook
Unity3D4

Amazon

adsbygoogle

Recent Posts

Categories

Amazon