|
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) { } 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?
(comments are locked)
|
|
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. Sorry about my question,I just want to the rotate speed can be the same when I enter everytime. Your answer mean...if I want make same rotate speed ,I can't use transform.forward?
Jun 01 '11 at 09:05 PM
ZroeX
(comments are locked)
|
