Example #1
0
 public bool IgnoreThis(BroadPhaseEntry entry)
 {
     if (entry is EntityCollidable && ((EntityCollidable)entry).Entity == Entity)
     {
         return(false);
     }
     return(Collision.ShouldCollide(entry));
 }
Example #2
0
 public bool IgnoreThis(BroadPhaseEntry entry)
 {
     if (entry is EntityCollidable ec && ec.Entity == Entity)
     {
         return(false);
     }
     if (CollisionRules.GetCollisionRule(entity.CollisionInformation, entry) == CollisionRule.NoBroadPhase)
     {
         return(false);
     }
     return(CollisionUtil.ShouldCollide(entry));
 }