the white dot is gravitationally attracted to (a sprite locked to) your mouse the red ring shows the range at which the dot is influenced by your mouse press space to toggle controls q to lock/unlock attraction point wasd to move the dot manually
credit to my maths class for helping