So i have taken the sample script from unity documentation for object rotation. I am using JS and the 1st script on the page works well for what i would like to do, except the rotation speed is far too slow for what i would like to do. Unity Page: Unity - Scripting API: Transform.Rotate
I tried the 2nd script they offered and played around with changing the variables, but that just changed the direction it rotated in.
Here is the first script that was going too slow. How can i speed up the rotation?
`function Update() {
// Slowly rotate the object around its X axis at 1 degree/second.
transform.Rotate(Vector3.right * Time.deltaTime);
// ... at the same time as spinning relative to the global
// Y axis at the same speed.
transform.Rotate(Vector3.up * Time.deltaTime, Space.World);
}`