- Home /
What's FixedUpdate
When does FixedUpdate() get called? So many different Update that's confusing
Answer by Kryptos · Jul 24, 2012 at 11:16 AM
Documentation: FixedUpdate.
This method is called on every step of the physic engine. While Update is framerate-dependent, FixedUpdate is not. Therefore it is easier to control everything related to physics because the rate is stable.
But keep in mind that to ensure this stability, expensive computation should not be done during a fixed update. So for instance it is better to share data between the two updates method. FixedUpdate could retrieve position, velocity, acceleration but expensive calculations such as procedural mesh generation would be done during Update.
edit: @Bunny83 already gave an answer to a similar question.
Now finally I know how to move stuff not framerate independent
Answer by DesiQ · Jul 24, 2012 at 12:57 PM
Seriously, don't you see that I already posted an answer? And giving just a link (which I also gave in my own answer) is not an acceptable answer.
edit: since you have only 1 karma, your answer may have been stalled waiting for moderation. Still a simple link is not enough.
Yes, he posted 8 $$anonymous$$utes before you did ;) And yes, the Answer is a bit short. However this has been asked several times now. Also it's not really hard to do some tests to figure out how FixedUpdate works. I just posted
an answer two days ago where i showed how FixedUpdate works internally.
Ok I'm adding a link to your answer in $$anonymous$$e.
It find it a bug that the date of an answer is not the date that an answer is posted but the date it quits moderation. This does not help new users to get their first karma point.
I know, it's kinda buggy. At least the edit time is the original timestamp.
You need 15 karma (see the FAQ). You will get it pretty fast if you get vote up for your answers or questions. I$$anonymous$$HO it is just a protection against spam.