Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
2
Question by RealMTG · Aug 30, 2014 at 09:50 PM · addforce

Another alternative of rigidbody.AddForce?

Hi!

I was just about to release my game when I noticed something BAAAAD. While using rigidbody.AddForce on my player, I noticed that the higher the FPS is, the faster the player goes. So players with good computers can finish a level in like 10 seconds while it takes 1 minute for people with bad computers. So I need another alternative. I tried transform.Translate but that just messed up the whole thing. My player is a sphere that rolls around so the rotation gets messed up on the way.

So do anyone know something like AddForce but doesn't rely on the FPS?

Thanks in advance

Comment
Add comment · Show 3
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 Kiwasi · Aug 30, 2014 at 10:40 PM 0
Share

You really should do some more QA before you release. If you missed this well documented gotcha there will be other issues you miss.

$$anonymous$$aybe some beta testing would be appropriate.

avatar image kacyesp · Aug 30, 2014 at 10:45 PM 0
Share

@Bored$$anonymous$$ormon What do you mean by more QA? If you're saying new developers should ask more questions, I think the problem is that we don't know what to ask. Or did you mean something else by that? I'm open to advice :)

avatar image Kiwasi · Aug 30, 2014 at 10:54 PM 1
Share

Sorry, QA is Quality Assurance.

The particular problem you mentioned is well documented. I'm slightly concerned that you might have missed something else that breaks your game when you release it.

So my suggestion is that before you release you get as many people as you can to play the game, specifically to look for bugs and things that can be broken.

1 Reply

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

Answer by kacyesp · Aug 30, 2014 at 09:53 PM

You should add force in FixedUpdate() since FixedUpdate() is independent of frame rate.

Here's a pretty good answer on how to handle inputs and where to apply physics when using Update() and FixedUpdate(): http://gamedev.stackexchange.com/questions/73713/update-vs-fixedupdate-in-unity

Comment
Add comment · Show 2 · 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 RealMTG · Aug 30, 2014 at 10:03 PM 1
Share

You sir saved my game! Thank you so much!

avatar image kacyesp · Aug 30, 2014 at 10:05 PM 0
Share

I'm glad you asked this because I didn't know this would be an issue. Now I have to go fix $$anonymous$$e lol...

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

24 People are following this question.

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

Related Questions

How to gradualy decrease all rigidbody added forces? 0 Answers

How do i make jumps follow through with rigidbody2D.addforce? 1 Answer

rigidbody addforce behaves different every time 2 Answers

2D AddForce vs. Velocity 1 Answer

AddForce not moving object after instantiate 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