I am writing a simple 2d physics engine with javascript, but something worng here.
I put 4 boxes vertically, but they always tilt slightly(slight rotation) to a side even though box 9 is on the flat ground. And after few seconds they fall on the ground because of the tilt. I have no idea how to fix it.