public CollisionEvent(ICollidable obj1, ICollidable obj2, Vector normal, CollisionResult collisionResult) { collisionType = Type.OBJECT_OBJECT; object1 = obj1; object2 = obj2; this.collisionNormal = normal; this.collisionResult = collisionResult; }
public CollisionEvent(ICollidable obj, BoundingPolygon p, Vector normal, CollisionResult collisionResult) { collisionType = Type.OBJECT_POLYGON; object1 = obj; polygon = p; collisionNormal = normal; this.collisionResult = collisionResult; }