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 NPS · Dec 23, 2013 at 11:38 PM · rotationcollisionphysicsrigidbodycollider

Rigidbody doesn't rotate after collision

I'm new to Unity physics and I've created a test scene where I have an object (a car model) with a collider and a rigidbody, and another object (an obstacle, also with a collider) positioned below the car (the latter hovers in the air at the start of the scene). The obstacle isn't placed centrally below the car but a little to the side so that when I play the scene and the car falls down it should collide with the obstacle, bounce off of it and rotate.

In fact, it does fall, it does bounce off (or at least slide on the side of the obstacle :P) but it never rotates (it's up vector stays up). I don't know why it works that way, probably I setup something wrongly. I've tried both box collider and mesh collider for the car object. The obstacle is unity primitive capsule.

Comment
Add comment · Show 3
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 CypherGames · Dec 24, 2013 at 12:54 AM 0
Share

Script please?

avatar image NPS · Dec 24, 2013 at 11:51 AM 0
Share

What script? I'm not using one.

avatar image Archon III · Dec 25, 2013 at 05:32 PM 0
Share

You say the obstacle is placed a LITTLE to the side. Correct me if im wrong, but the car would not rotate if there is a surface lying directly below its center of mass. In other words, the obstacle would have to be a little more to the side. A picture of the setup would be helpful.

3 Replies

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

Answer by NPS · Dec 25, 2013 at 08:01 PM

Well, this is embarassing. I've just found out the culprit was my own script (it messed with the car's rotation). I'm posting this as an answer as this is what solved my problem (fixing the script) but I know it's just realizing my own mistake. :P

Thanks everyone for taking time to try to help me.

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

Answer by PlasmaByte · Dec 24, 2013 at 12:55 AM

Under the rigidbody component in the inspector you have the option to freeze rotation. Is this checked?

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 NPS · Dec 24, 2013 at 02:11 AM 0
Share

Nope. ````

avatar image
1

Answer by luckruns0ut · Dec 24, 2013 at 01:05 PM

I'm assuming this is because there is no physics material on either object so the rigidbody doesn't flip since there is little friction... Have you tried adding them?

Comment
Add comment · Show 2 · 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 NPS · Dec 25, 2013 at 05:12 PM 0
Share

Hadn't but have just now. After adding materials the friction seems to do its job but other than that - no effect. The car still doesn't rotate. Should I post here a sample scene?

avatar image Ana-Mery · May 30, 2019 at 11:30 AM 0
Share

This helped me, the material had no friction, (only bounciness), thank you!

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

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

Related Questions

How may I observe expected physical interactions while using Rigidbody.MoveRotation()? 1 Answer

Camera and mesh not colliding 1 Answer

Layers are colliding even though they are set to ignore each other 1 Answer

Objects rotating after falling on another object with Physics & Gravity? 1 Answer

How to properly move a rigidbody/collider? 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