CopyPastehas never been so tasty!

MOVE 33

by anonymous

  • 0
  • 0
  • 0
137 views

var speed = 10;


function Update()
{
if(Input.GetKey("left"))
{
rigidbody.AddForce(Vector3.left*speed);
}


if(Input.GetKey("right"))
{
rigidbody.AddForce(Vector3.right*speed);
}
if (Input.GetKey("up"))
{
rigidbody.AddForce(Vector3(0,0,1)*speed);
}

if (Input.GetKey("down"))
{
rigidbody.AddForce(Vector3(0,0,-1)*speed);
}

}
function OnTriggerEnter ()
{
Transform.position(-1.836594,3.364676,-5.482049);
}

Add A Comment: