I'm writing a gravity simulation in python and pygame, and had a quick question. Say I have an object that I can move. Lets call it "square". Then I created a line like so...
pygame.draw.line(screen, (0, 0, 0), (84, 368), (510, 368))
How would I tell python not to let "square" go through the line?:?: