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