Hi. I'm new to unity, and I don't know anything about Javascript. I have a box object, and I want it to rotate. I have made a script for that, but it dont work, and it drives me craaazy! :/ here is the script:
var rotationspeed = 100;
function update()
{
var rotation = Input.GetAxis("Horizontal") * rotationspeed;
rotation = rotation * Time.deltaTime;
transform.Rotate(0,rotation,0);
}
I have programmed a little in c++, so I know a little about programming, but I cant find the error here.