DefKit is the simplest solution for adding deformable objects (a.k.a. softbodies) to your games.
With just one click:
First, DefKit tetrahedralizes the 3D object, i.e. splits it's volume into a large number of small tetrahedrons (tets, for short).
Next, for each corner of every tet, DefKit generates a small rigidbody.
Finally, it connects all these rigidbodies along the tet edges by spring joints creating a, so called, mass-spring model (MSM).
DefKit relies on Unity's built-in physics.
The included scripts help with visual mesh updates and control of mechanical parameters such as springs stiffness or friction coefficients.
DefKit gives access to raw tetrahedralized meshes (nodes, links, tets). These can be use, for example, in simulation using finite element method (FEM)
Beta Version
This asset is still in development. Any bug reports and feature requests are more than welcome.
Future Work::
- Fast, multi-threaded physics implementation.
- Generated mesh quality control
- Tetrahedron volume constraints
- Strain based dynamics
- Finite element method
- Shape matching