Created in Unreal 4.
The sphere and ground are procedurally generated meshes. The tool sends a trace to hit a point on the mesh. Based on the key pressed, it either brings the vertices closer to the player or pushes them away. The effect is applied over time as the player holds down the button.