Question on Unity Documentation


In the following link :

in the function

function Rotate (axis : Vector3, angle
: float, relativeTo : Space =
Space.Self) : void

the example is using Time.deltaTime as the angle. I am not able to understand why are using Time.deltaTime as the angle ?

Can anyone plz explain ?

Rotate rotates by a relative angle, since you usually do a continous rotation every frame (in Update) you only rotate a small amount each frame. Time.deltaTime is used to make the rotation speed independet from your framerate.