[NOW WITH SOURCE] Mesh deformation on impact

Hi guys,

today i wanted to play around with meshes and manipulating them on impact.
The result you can try here:

Just drive into walls and jump over the ramps and watch what happens :slight_smile:

Controls:
WASD - steer
space - handbrake
r - reset

EDIT:

download it here:

I crashed at high speeds and didn’t notice any changes :face_with_spiral_eyes:

Tried ramming my front and back into the walls

I didn’t see any changes, too… :shock:

After a few (really just a few) crashes i get this result:

Perhaps i will post a more sensitive version tomorrow if noone gets this car crashed.

1 Like

After hitting the walls a few times there definitely are changes, but they should be much more pronounced. When I use a ramp and crash upside down into a wall, I expect the car to not get out of that alive. :slight_smile:

Am curious as to how far you can push this deformation. It’s a good start and would probably interest the people who are involved here

I agree, you should definitely increase the damage rate.
At 170 mp/h a car should be squished to half when hitting a wall straight :lol:

UPDATE:

  • now it breaks more fast
  • bugfixes (Quaternions are hell :wink: )
  • now it rocks

please try it out :smile:

any plan for sharing the project??

I thought about selling it for a few bucks when it’s polished.

(need to earn my Unity 3.0 update :wink: )

Definitely notice the crumple in the updated version 8)

Sensitivity is much better now.

Some questions/suggestions

For a realistic car deformation, you should look into also deforming the top of the car. Whenever I land upside down, nothing happens to the car roof.

Have you also implemented different materials and how they react to deformation? While repeatedly hitting the front of the car, the engine block should stay fairly intact, because it’s a massive amount of metal, while the back and sides of the car should deform more easily.

Nice, better. I would still increase sensitivity a bit, though.
Still running at 170 Km/h into a concrete wall would mean a complete car squash :smile:

very cool! 8)
Ron

Pretty darn cool.

Wow! this is cool. I like that the engine sounds like a moped.

Will your scripts for this work in Unity Indie? or would us developers need to own a pro version?

satrio: it’s from a moped :smile: you have good ears!

MakerOfGames: it will work for indy, too. It’s just one script which manipulates the vertices of the mesh.

can anyone tell me how this type of mesh deformations can be implemented under the hood?

Hi Ethan,

What’s the update of your project? Is it already stable? If you don’t have the will to share it, may I know the cost of it… I just need an idea of mesh deformations for my game…

Thanks

Hi,

i am now releasing the code and the whole example project.

If this package helps you, if you are using it in a commercial project or if you want/need support, i would be happy if you consider a small donation.

download/donate here: vidiludi software - simulations, web tools and games since 2010

You will find a detailed description of the script in the readme file.

Have fun, hope it helps you :slight_smile: