matt's blog

<- back
27 September 2018

A Sphere With Updating Vertices

Here is a scene where the sphere's vertices update on the mouse position. If the mouse position is below a certain distance from a vertex, then the vertex will update to be at the mouse position. When the mouse moves outside of that threshold the vertex will return to its original position, to make the transition a bit smoother, instead of returning to the position directly it updates to the midpoints between its current position and the initial position until it reaches its initial position.