PowenKo, Unity Tutorial b40, Physics, add Rigidbody

December 27, 2011   ·   0 Comments

Screen Shot 2011-12-26 at 8.06.04 PM


using UnityEngine;
using System.Collections;

public class addPhyics : MonoBehaviour {
	void Update () {}
	
	  void Start() {
        GameObject cube = GameObject.CreatePrimitive(PrimitiveType.Cube);
		cube.AddComponent("Rigidbody");
			
    }
}
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


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