⬅  Return

Tearable Mesh and Verlet Integration


I was wandering around Codepen for cool animations a while back and found an interactive tearable mesh animation:

Tearable Mesh Animation

https://codepen.io/dissimulate/pen/nYQrNP

Therapeutic, innit? The experience reminds me of a rage room… What a stress reliever!

After spending a few minutes tearing the mesh apart and gasping at how realistic it feels, I was set off to find out more about the underlying mechanism.

Verlet Integration

The underlying algorithm is called a Verlet integration. It was most recently rediscovered by a French physicist, Loup Verlet, for its use in molecular dynamics.

Verlet integration is a numerical method used to integrate Newton’s equations of motion. It can be use for simulating motion and behavior of objects in real-time, by calculating the position and velocity of each point in objects based on the forces applied.

The algorithm is often used in game programming to simulate realistic interactions with deformable objects and in physic systems to simualte molecular dynamics, fluid dynamics, and more.

There are many academic papers, blogs, and applcations available on this topic, so I won’t be reiterating the math here. Here are some useful resources to get started:

Final Words

There are also other numerical methods for simulating deformable objects in computer graphics, such as the Finite Element Method (FEM) and Position-Based Dynamics (PBD). Each has their pros and cons, and the choice of method will depend on the specific requirements of the simulation, including accuracy and computation efficiency.