logo80lv
Articlesclick_arrow
Talentsclick_arrow
Events
Workshops
Aboutclick_arrow
profile_login
Log in
0
Save
Copy Link
Share

Neat Way to Create Simple Mesh Deformations in Unity

Tomaso offers a good solution in under 30 lines of code.

Object impact doesn't have to be complicated, as game developer Tomaso demonstrates in his showcase of mesh deformation in Unity. Projectiles leave visible indentations in just under 30 lines of code.

"A super simple mesh deformation in Unity using vertex offsets on impact with a smoothstep falloff. The deformation is computed off the main thread and applied once finished, keeping it fast and scalable even for large scenes and massive amounts of rigid bodies and collisions – especially when the MeshCollider is not updated."

Tomaso

You can grab the code on GitHub under SoftMeshLight. There are also some other interesting tools you should check out, including rope and cloth physics.

Don't forget to subscribe to our Newsletter and join our 80 Level Talent platform, follow us on TwitterLinkedInTelegram, and Instagram, where we share breakdowns, the latest news, awesome artworks, and more.

Ready to grow your game’s revenue?
Talk to us

Comments

0

arrow
Type your comment here
Leave Comment
Ready to grow your game’s revenue?
Talk to us

We need your consent

We use cookies on this website to make your browsing experience better. By using the site you agree to our use of cookies.Learn more