Hey guys!
This is only my second day of learning unity but I’ve already learned so much! looking forward to learning more.
Ok, I made a little game with a box that I can click and drag. When I don’t touch it, the box falls to the floor. The problem is that if I drag it down and beyond the floor, it goes right through… is there anyway to fix this?
Second problem: is there anyway to make my box roll on the floor? I tried using
function Update () {
var hturn : float = Input.GetAxis("Horizontal");
transform.rotation(Vector3(hturn,0,0));
}
but that doesn’t work…
any help would be greatly appreciated!