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 olmeister · Jan 18, 2012 at 02:55 AM · carwheelcolliderracingmotortorquemechanical

Applying Torque to wheelcollider

Hey, i'm attempting to apply torque to a wheelcollider using its motortorque in a semi-realistic way:

Basically i'm building a motor for a car that uses specs from any given car, this isnt so much a direct programming question, but more a mechanical engineering one:

I have the Maximum Engine Revs, Kilowatts and Torque (Nm) and i'm attempting to transpose these specs to the wheelcollider.motortorque. My motor currently revs, shifts gears at the maximum revs and works, but the relationship to the torque of the wheel is wrong.

  wc.collide.motorTorque = ((powerkW * 5252 * 50)/ currentRPM) * 1/(currentGear) 

As you can see the equation is fairly arbitrary and doesnt properly reflect any real simulation.

I know there is a CarTutorial project available, but the tutorial isn't realistic and doesn't apply force to wheelcolliders but to the rigidbody itself.

Can anyone point me in the right direction, or clarify a few things (abit of a mech-eng noob).

Thanks!

Comment
Add comment · Show 1
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 · Jan 18, 2012 at 08:42 AM 0
Share

Dude, the "wheel collider" really does not work like that. It's a very confusing component -- it's not really a 'wheel" it's more of just a kind of stick that helps the car bounce up and down. they SHOULD HAVE NA$$anonymous$$ED IT something like "suspension collider" or "vehicle corner height adjustor" or something. it is badly named. what you say about the car tutorial is exactly correct - that is how it is done. if you can engineer BETTER EQUATIONS for the physics of car engineering, that is great - go for it. be sure to also look at Unity's "better" car physics example in the car island example project. Also, buy yourself the various "car packages" available on the asset store, to see what they do. (they're all a shambles, but will give you some tips). finally do not hesitate to SI$$anonymous$$PLY NOT USE the strange "wheel collider" components, if you don't want to. I would say many if not most unity vehicle games in the store do NOT use the wheel colliders, people just did it themselves from scratch.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by RubbaKeys16k · Apr 22, 2012 at 03:47 PM

If you would like to know how wheel Colliders really work, in that unlike the comment from Fattie they not only apply suspension but also apply drive and braking, then take a look at something like this: http://carpe.com.au/slawia/2009/08/unity-wheel-collider-part-2/

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 Fernando-Ferreira · Nov 12, 2020 at 07:12 PM 0
Share

this is not a good answer :(

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

Unity 5 wheel collider throttle "stuck". 1 Answer

How is wheelCollider RPM calculated exactly? 1 Answer

Best wheel collider values (forward friction,sidewards friction) for racing cars ? 1 Answer

Add Force or Motor Torque .. Which is better for creating a car? 1 Answer

Cube colliders and cars 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