I've been wanting to code a spring in python using pygame but I don't quite know how to implement F = -kx into circles that actually move around.
I've tried adding the force to dx and dy and adding that to the lower circle's pos and I've also tried just setting the position of the lower circle to the force. None of these work and I'm just extremely confused I want to hard code the physics instead of using a physics engine like pymunk.