Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Mold · Jul 24, 2012 at 10:50 AM · updatefunctionfixedupdatewhen

What's FixedUpdate

When does FixedUpdate() get called? So many different Update that's confusing

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
5
Best Answer

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.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Mold · Jul 24, 2012 at 07:59 PM 0
Share

Now finally I know how to move stuff not framerate independent

avatar image
1

Answer by DesiQ · Jul 24, 2012 at 12:57 PM

This function is called every fixed framerate frame.

Comment
Add comment · Show 6 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Kryptos · Jul 24, 2012 at 01:06 PM 0
Share

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.

avatar image Bunny83 · Jul 24, 2012 at 01:31 PM 0
Share

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.

avatar image Kryptos · Jul 24, 2012 at 01:36 PM 0
Share

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.

avatar image Bunny83 · Jul 24, 2012 at 01:49 PM 0
Share

I know, it's kinda buggy. At least the edit time is the original timestamp.

avatar image Kryptos · Jul 25, 2012 at 07:25 AM 1
Share

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.

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Can use FixedUpdate in Update? 1 Answer

Rigidbody.AddForceAtPosition & functions 1 Answer

CoRoutione from FixedUpdate not working 1 Answer

checking multiple textures at once using functio update 1 Answer

FixedUpdate limits: consistant 0.01 s on mobile devices? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges