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
0
Question by matyicsapo · Oct 09, 2010 at 12:30 PM · physicsmathforcedocumentationcalculate

ForceMode.Acceleration estimated dst != covered dst with a single Addforce in effect

ForceMode.Acceleration: " In this mode, the unit of the force parameter is applied to the rigidbody as distance/time^2. "

For me this means that F = distance/time^2 and since I used no other forces, useGravity is off, drag is 0 there can't be other forces affecting the object.

my code:

void Start () { Vector3 force = new Vector3(X, 0); Invoke("Break", time); }

void FixedUpdate () { AddForce(force, ForceMode.Acceleration); }

void Break () { Debug.Log("break") Debug.Break(); }

Still if I replace the letters with my values 10 = 45,9/3^2(45,9 is the distance the simulation got me) it's not right. Distance should be 90. So what could have held my object back? What am I missing?

{driven crazy(in a funny way) by meddling with physics in unity3d}

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Adrian · Aug 23, 2011 at 04:56 PM

The unit is distance/time^2 or better (distance/time)/time, i.e. velocity changed over time.

If you apply a force of 10 units over 3 seconds using ForceMode.Acceleration, then your rigidbody will be accelerated by 10 units/second per second. It will start out with 0 u/s and end up at 30 u/s at the end of those three seconds. This will give an average velocity of 15 u/s and result in the 45 units you measured (3 s * 15 u/s).

ForceMode.Acceleration and ForceMode.Force depend on how long a physics frame is. If the physics frame is ver long, much more force/velocity will be applied in that frame in compared to a short frame. In contrast, ForceMode.VelocityChange and ForceMode.Impulse do not depend on the frame time and will apply the force/velocity directly, meaning the actual force will change depending on your physics frame rate.

Comment
Add comment · 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

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

1 Person is following this question.

avatar image

Related Questions

Calculate Position of Rigidbody after applying Force 0 Answers

Calculating force 1 Answer

Physic Material friction mathematical formula 0 Answers

Physic Material Friction Combine Mode lack of documentation? 2 Answers

Collision.impulse 2D equivalent 2 Answers


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