Simulation of elastic materials