- Home /
Is there a way to use MoveRotation() globally?
In the same way that there is AddRelativeTorque() vs AddTorque(), all I want to do is use MoveRotation() globally. My object uses MoveRotation() to rotate on the local z axis. The angle of this rotation determines the speed at which the object rotates on it's y axis. Unfortunately with the local z rotation local y is pitched and no longer points globally up, which is why I need to use MoveRotation() globally. AddTorque() makes turn reversals not immediate and sloppy. Directly changing angularVelocity could cause physics issues so I prefer not to resort to that. Any help would be greatly appreciated.
To my knowledge, $$anonymous$$oveRotation is already global, like $$anonymous$$ovePosition.
The only reason his rotation was "local" is because he used the wrong multiplication order in $$anonymous$$oveRotation.
rigidbody.rotation * deltaRotation
is local, deltaRotation * rigidbody.rotation
is world
Your answer
Follow this Question
Related Questions
Why is it moving locally instead of globally? 1 Answer
Combining 2 Rotations: Global and Local 2 Answers
Rotating Player Controller locally or globally. 0 Answers
Local Look Rotation 0 Answers
Local Velocity for Rigidbody? 1 Answer