Deformable body dynamics simulation