public class FysixCollisionDetector {
public static boolean checkCollision(FysixObject fo1, FysixObject fo2) {
Vector2d relVel = new Vector2d();
relVel.sub(fo1.getVelocity(), fo2.getVelocity());
Polygon p1 = fo1.getBoundingArea();
p1.translate((int)fo1.getPosition().x, (int)fo1.getPosition().y);
Polygon p2 = fo2.getBoundingArea();
p2.translate((int)fo2.getPosition().x, (int)fo2.getPosition().y);
PolygonCollisionResult res = PolygonCollision(p1, p2, relVel);