How can i make a 2d physics engine?

so I saw a application that was on my pc it was some kind of 2d physics engine and i wanted to make something that is like that

I would highly suggest utilizing this.