- Home /
[Simple C# Question] How do I increase the speed of a rotation?
Hey,
I just wrote a simple C# script to make a gameObject rotate 'left' using transform.rotate, and I honestly don't know how to increase the speed of this movement. The script is below :p
void Update () {
transform.Rotate (Vector3.left * Time.deltaTime, Space.World);
}
}
Answer by AyAMrau · Sep 05, 2014 at 03:29 AM
Just multiply Vector3.left * Time.deltaTime by another value.
Actually, just one more thing - how can I make the rotation slower than when it is multiplied by one? It is quite fast for me.
$$anonymous$$ultiply it by a fraction, eg. * 0.5f will make it turn at half the speed.
Eh I realised what to do about a $$anonymous$$ute after posting.. Thanks anyway!
Your answer
Follow this Question
Related Questions
Flip over an object (smooth transition) 3 Answers
Rotate a projectile on Z axis for a 2D Game played on X and Y axis? 1 Answer
Distribute terrain in zones 3 Answers
I need some help with camera rotations 0 Answers
Multiple Cars not working 1 Answer