Polygon collision detection and simulation base on AABB