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 centaurianmudpig · Feb 21, 2013 at 07:48 AM · rigidbodyspeedforcetorqueaddtorque

Calculate force for torque by specifying a required velocity

I am able to calculate a force using a required velocity and apply this to a Rigidbody using AddForce. After a lot of investigation, I stumbled across the answer in Unity's forums, here is the working equation:

 Force = (speed / 2) * mass


I now want to do something similar to rotate a Rigidbody using AddTorque. Nothing I've come across comes close to this method. Please help.

P.S. It is important that I calculate the force required, which eliminates using ForceMode.Acceleration.

Comment
Add comment · Show 2
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 Fattie · Feb 21, 2013 at 09:40 AM 1
Share

you need a reasonable grasp of junior high physics for this,

nobody on this list can do even arithmetic :)

First arm yourself with an understanding of rotational inertia,

http://en.wikipedia.org/wiki/List_of_moments_of_inertia

then I suggest you ask your specific Torque question on the "math.stackexchange" site

you will instantly get many detailed smart-arse yet useful answers from wannabe undergraduate college kids

eg, http://math.stackexchange.com/questions/168172/torque-calculation-to-achieve-clean-spintumble

http://math.stackexchange.com/questions/231627/effect-of-angle-and-lever-length-on-moment/231648#231648

http://www.angelfire.com/nc3/pweb/lessons/torrotin.htm

conceivably somewhere like gamedev you could get an answer also

Hope it helps in some way!

Again you can't ask the question until you know or decide on the moment of your object.

avatar image centaurianmudpig · Feb 22, 2013 at 01:25 PM 0
Share

Thanks for taking the time to answer. Having looked into this there seems to be hidden key element which AddTorque() uses. That is the radius from which the force is applied. Given that, I think I need to find a Physics guru who uses Unity...

1 Reply

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

Answer by centaurianmudpig · Feb 24, 2013 at 12:25 AM

The solution to my problem seems too simple but it works...

Force = Speed / Time.fixedDeltaTime

i.e. A rotation speed of 1.5 required a force of 75.

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

11 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

Related Questions

Im using add force to make a 'ship' go forward, if i release the key is there any way to slow it gradually? 1 Answer

AddTorque() doesn't work when also using AddForce() 1 Answer

Rotation Force on a model 2 Answers

Moving a rigid body on a plane applying forces 1 Answer

AddRelativeTorque not rotating 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