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)); } } } }
public CollisionSystem() { _logicSubsystem = new CollisionLogicSubsystem(); _physicsSubsystem = new CollisionPhysicsSubsystem(); }