Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 Skflowne · Jul 17, 2015 at 02:30 PM · cardamagedeformationcar physicsmesh-deformation

How to achieve realistic car damage ?

I want to make a game with realistic car damage, by which I mean when two cars collide, their mesh or submeshes deform in a believable way.

I'm wondering what are the possible ways of achieving such a result ?

My first approach has been to find the points in the mesh that are close to the contact points returned by the Collision object of the OnCollisionEnter function. I was thinking of then trying to find the other points that are contained inside those contact points to find what the actual contact surface was and then push those in along with the other points behind it.

I'm sure there are other ways to do it. This one seems a bit complicated.

Would it be possible to use soft bodies in order to let the physics engine process the deformation ? Or would there be advantages in terms of performance to use a shader to animate / deform the mesh ?

I'm worried my approach will be very CPU intensive as I would like to have several relatively complex car models (it won't be a simple box) able to process those deformations without it freezing. Ideally it could run on mobile too.

Edit : Also I don't want to use an asset for this, I'm really interested in how it's done and would like to do it on my own.

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
0

Answer by TutiBueno2 · Jul 17, 2015 at 02:47 PM

Edy's Vehicle Physics does have this feature. More info here: https://www.assetstore.unity3d.com/en/#!/content/403

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 Skflowne · Jul 17, 2015 at 02:49 PM 0
Share

Thanks, but I should probably have mentioned I really want to try and make this myself, for learning purposes.

avatar image
0

Answer by lrpsantiago · Jul 17, 2015 at 04:26 PM

Well, a simple way (maybe archaic) to do this is to separate your car in small parts, empty GameObjects to attach a part model. Then, for each part's model, you make a damaged version of that part. And then, when the collision happens on that part, you replace that part for its damaged version (and maybe the surrounding parts too). To make this more realistic, you can make many levels of damage, it's up to you. So, for example you can make:

  • FrontBumperNew -> FrontBumperLightDamaged -> FrontBumperHeavyDamaged

Unfortunatelly, it's almost the same concept of car customization, and this might be laborious to do because of the amount of models, but it's an option. Simulating this by mesh deformation should be ideal. Take a look at this topic: http://forum.unity3d.com/threads/the-best-moethod-for-car-damage-mesh-deformation.109490/

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.

Follow this Question

Answers Answers and Comments

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

Related Questions

Car damage 1 Answer

Cant seem to make this basic 3D car turn properly 0 Answers

How to go about displaying car damage? 0 Answers

(UnityCar) Starting Engine 0 Answers

Need for speed like physics using Edy's vehicle physics? 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