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 dre38w · Sep 12, 2013 at 03:22 PM · rotationrigidbody

Why does rigidbody rotate randomly on its own?

I don't know if this question is asking too much but I have a bike using sphere colliders on the wheels and a rigidbody for the parent object of the entire model.

My issue is that after the bike goes up any form of uneven terrain (ramps, small bumps, etc) it'll just, at random, rotate up to 90 degrees and stay there. Sometimes it'll rotate slightly (but not consistently the same angle) and eventually level back out. And it's always rotating forwards up until that 90 degrees mark.

One last thing, is that when it launches off the ramps it'll go up then start rotating forwards to face towards the ground. But again, its angle is always random. Does anyone have any idea WHY it's doing this?

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 meat5000 · Sep 12, 2013 at 03:26 PM

Swap the Spheres for wheel colliders and make sure the bike and the wheels are not able to collide with each other in the Collision Matrix

Comment
Add comment · Show 4 · 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 dre38w · Sep 12, 2013 at 03:37 PM 0
Share

We tried using wheel colliders, but for a bike it was showing more problems than it was worth. And the bike body itself has no collider on it. Do you suggest using the wheel colliders over spheres for bikes? Cause it would just fall over and if we put four it feels like a car more than a bike. But I'll give it another shot if that's the preferred way to make a bike.

avatar image meat5000 ♦ · Sep 13, 2013 at 10:50 AM 0
Share

Check the model import tab for the bike and see if Generate Colliders is checked, per chance.

avatar image dre38w · Sep 13, 2013 at 11:23 PM 0
Share

Yes it does. But I think we took the collider off for some reason. haha So, are wheel colliders the way to go for bikes?

avatar image meat5000 ♦ · Sep 14, 2013 at 08:19 PM 0
Share

Wheel colliders for wheels in general :) If you have generate colliders checked for the bike frame you will probably need to uncheck them in the collision matrix to make sure the frame isnt colliding with the wheels; otherwise the colliders will probably overlap and cause problems. Also, lowering the centre of gravity may help to stop the bike from tipping, just like when cars tend to roll in Unity.

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

16 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 avatar image avatar image avatar image avatar image avatar image

Related Questions

Rigidbody goes wonky after collision 0 Answers

Lookat Direction by AddTorque? 0 Answers

Problem with rigidbody rotation 2 Answers

Rotating a MeshCollider 0 Answers

Have an object bounce off colliders instead of drift 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