示例#1
0
 public void DrawMinkowski()
 {
     foreach (var actor in _moveableCollisionComponents)
     {
         if (actor.Collision.Inactive)
         {
             continue;
         }
         foreach (var target in _collisionComponents)
         {
             if (target.Inactive)
             {
                 continue;
             }
             if (actor.Movement.IsMoving && !actor.Collision.Equals(target))
             {
                 Functions_Draw.DrawDebug(CollisionPhysicsSubsystem.CalculateMinkowskiDifference(actor.Collision.CollisionRectangle, target.CollisionRectangle));
             }
         }
     }
 }
示例#2
0
 public CollisionSystem()
 {
     _logicSubsystem   = new CollisionLogicSubsystem();
     _physicsSubsystem = new CollisionPhysicsSubsystem();
 }