- Home /
Camera rotate around a moving object: fixedLateUpdate?
I have a rigidbody object that the camera follows. On some instances the camera will rotate automaticly around the player. (When he died, game enden scoreboard view etc.) But my problem is that this rotation speed differs on other computers. On my laptop its slow, on my pc inside unity is normal, and on my pc testing a build its rotation speed is fast.
So how can I tackle this, Fixedupdate would give it a steady rotating speed on all pc's but since the camera is a orbit follow camera it must be in LateUpdate. And as far as I know there is no such thing as FixedLateUpdate
Answer by hathol · Jun 04, 2012 at 12:50 PM
Just multiply your rotation amount by Time.deltaTime to keep it time dependant (instead of framerate dependant). You will probably have to adjust your rotation speed a bit afterwards, but that should do the trick.
Your answer
Follow this Question
Related Questions
Workaround for Quaternion.eulerAngles 360 Degree Limit? 1 Answer
if (transform.rotation == Vector3(0,0,0)) doesn't work! 2 Answers
Camera Jitter using Fixed or LateUpdate, need it to be smooth in both. 2 Answers
How to restrict rotation properly 2 Answers
The name 'Joystick' does not denote a valid type ('not found') 2 Answers