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
0
Question by Thet Naing Swe · Oct 04, 2010 at 07:52 AM · rigidbodydistanceforcecalculate

calculate the estimated distance travel based on the Force applied to Rigid Body

Hello everyone, How can I calculate the estimate the distance travel if I applied some amount of Force onto to Rigid Body with the mass of 1.

rigidbody.AddForce(transform.forward * Force, ForceMode.Impulse);

if I know the start position of this rigid body, what will be the final distance.. How can I calclate that.. and Viceversa.. how can I know that How much force that I have to apply to reach to the certain distance..

Anyone help me..

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 Herman-Tulleken · Oct 04, 2010 at 08:19 AM

In the absence of drag your object should travel on forever, the impulse amount will just change the speed.

If there is drag, you will need to know the equations that the engine uses for its calculations to calculate the distance the object will travel. I don't know if these are available.

But you should be able to do an experiment to determine which force to apply. Just run the game and apply different impulses (500N, 1000N, etc.) each time. Measure the object's initial and final positions, and log out the magnitude of the difference. (The easiest way to measure that final position is to make a function call on keypress, then you just watch until your object is still enough, and push the key to take the measurement.)

Now put the results in Excel or Calc, draw a graph, and you should be able to determine the force to apply. Keep the graph for reference later, and make sure to record the mass and drag of the object, as these factors will of course influence the results.

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 Thet Naing Swe · Oct 04, 2010 at 08:49 AM 0
Share

Thanks.. $$anonymous$$y rigidbody use gravity and it also has drag value too although I just assign the drag value to 1 and mass to 1.... I will try to keep record and based on the result, I will make a new equation...

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

How to calculate force from explosion on a rigidbody 1 Answer

Realistic/No gravity spaceship movement? 1 Answer

How to make a RigidBody move in a certain direction 1 Answer

Generate randoms planets with a specific script 0 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