• 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 Shatcore · Aug 09, 2012 at 04:29 PM · physicscar

Physics- cars flying off after collision

I've just started learning unity and I'm currently prototyping a game. I'm having an issue with the physics. This snippet is set to model vehicles crashing at their top speed- http://livesplusplus.com/unitytest/unity-test.html

The cars are being sent far too high up in the air for my liking and they seem to hang there for too long, it looks unrealistic. The cars have a simple box collider plus 4 wheel colliders, the mass of the cars is 2000 and they are set in motion using rigidbody.velocity. I've tried making gravity stronger but it pulls tipped over cars back to normal which I think isn't a nice aesthetic.

Any ideas?

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

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by JonnyHilly · May 07, 2020 at 08:26 AM

this is a unity physics collision bug... its still there in 2019 :( car crashes... sometimes it is launched vertically in the air like shot out of a cannon. you can try changing things from discrete to continuous collision but then you'll also get weird effects like the car starts to collide with itself if it has any sub objects or sub colliders, or colliding with a perfectly flat track it is driving along when it crosses a track segment to another mesh. :( good luck

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
0

Answer by syedbilal5551 · Jan 08, 2016 at 03:53 PM

try by increasing mass the object of the rigid body you created in your game so that after collision your car might stops or if you have sufficient mass then make a clear difference between the car's mass and the mass of a colliding rigid body.

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
0

Answer by Bunny83 · Aug 09, 2012 at 04:34 PM

Do you use the normal world scale? So 1m is 1 unit?

The mass as no effect on gravity. The gravity is specified as a constant acceleration 9.81m/s²

I'm not sure if the wheel colliders have an effect on this, but the in-air behaviour should be only gravity and the Rigidbody settings. Try to lower the drag.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

10 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

Related Questions

Car tutorial physics models rotating randomly? 1 Answer

need tutorials for rigidbody.Addforce 1 Answer

my car keeps fliping over i have an idea how to fix it but i need help 3 Answers

Rollcage-like car gravity 0 Answers

Car - WheelCollider - Why the side is getting up? 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