The environment currently only looks at the collisions between pygame rects and points to determine collisions. This is problematic because pygame's bounding boxes for rotated images aren't accurate. To make room for future functionality, a physics engine should wrap around the environment to detect collisions between cars and track borders. Box2d is recommended for this.
The environment currently only looks at the collisions between pygame rects and points to determine collisions. This is problematic because pygame's bounding boxes for rotated images aren't accurate. To make room for future functionality, a physics engine should wrap around the environment to detect collisions between cars and track borders. Box2d is recommended for this.