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 Jack-2 · Feb 02, 2011 at 07:25 PM · physicswheelrollingwheels

Making a realistic tire/wheel?

This might be kind of tricky to explain but I'll try my best.

My character is basically just a wheel, a single wheel (looks like a car tire actually) that is always standing up. I want him to do the usual when movement keys are pressed; go forward, backward, left and right etc. But I want his movements to mimic those of a wheel as if it was rolling around in different directions.

The physics of this are kind of hard to nail down and so far nothing I've done has really looked right. I kind of want him to sort of "tilt" to one side when turning, when backing up I want the wheel to just go in reverse instead of just immediately turning around, and some way to keep it from falling over when ever sharp turns are made. You know how wheels behave I'm sure.

Can anyone point me in the right direction to something that might help me get off the ground with controls like these?

Thanks a lot.

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

2 Replies

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

Answer by Borgo · Feb 02, 2011 at 07:59 PM

Well, we have a lot of questions here :)

Things that can help you:

Physics materials
This can help you if you are using rigidbodies. The Physics materials determines the friction and bouncing of your object.

Freeze rotation
This will freeze the rotation of your rigidbody, this way, your wheel will not fall aside.

Math
I don't see another way than this to rotation (rolling) the wheel: calculates the velocity and diameter of your object to determines the rolling rotation. This way, you will need just to apply a force to your object. I guess the racing tutorial uses this calculation.

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 Jack-2 · Feb 03, 2011 at 08:51 PM 0
Share

Thanks a lot! That will help, didn't know about freeze rotation.

avatar image
1
Best Answer

Answer by e-bonneville · Feb 02, 2011 at 08:03 PM

Have you tried working with wheel colliders? They may help somewhat. You'll have to play around with them a lot to get it to work, but at least you don't have to script the physics yourself - that can get a bit hairy.

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 Jack-2 · Feb 03, 2011 at 08:52 PM 0
Share

$$anonymous$$an, I'm so dumb. Wheel colliders, of course. Thanks for pointing those out to me, I never really noticed it before.

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

No one has followed this question yet.

Related Questions

Making a realistic tire/wheel? 0 Answers

Basic two-wheeled functionality for Segway-type vehicle 1 Answer

Setting Wheelcollider BrakeTorque to 0 does not release brake 0 Answers

Rotating child doesn't move parent Rigidbody? 1 Answer

moving and jumping ball using physics 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