How to make the same rotation speed?

hello everyone.

I make a script at my protagonist.
If my protagonist in to a object.tag=StartRotation.

He will begin to rotate.

function OnTriggerStay (other : Collider) {

if(other.gameObject.tag=="StartRotation"){

transform.Rotate(Vector3.forward*Time.deltaTime*500, Space.World);

}

}

I have a problem is everytime when I in to the “StartRotation”,my rotation speed can’t be equal speed.(sometime fast,sometime slow)
And now I hope the rotation speed can be equal speed.

so…how can I do?

it’s difficult to understand what you’re trying to do, but a precursory look at your code tells me that you’re going to get inconsistent rotations because you’re using transform.forward. When you enter a trigger, it’s going to be different every time depending on the direction you’re facing.