A side project of a simple physics engine, with rotation and accurate collision