Move your pointer in the playfield. The enemy accelerates toward you, then slows down naturally due to friction.
Distance: 0 px | Enemy speed: 0
Instead of easing position directly, you ease velocity (acceleration), then update position. This feels less robotic and is easier to tune. fileciteturn4file0L131-L166
Adjust friction • Add max speed • Add flee behavior • Add multiple enemies. fileciteturn4file0L170-L182