stole some code trying to animate changes in heightmap