public bool IgnoreThis(BroadPhaseEntry entry) { if (entry is EntityCollidable && ((EntityCollidable)entry).Entity == Entity) { return(false); } return(Collision.ShouldCollide(entry)); }
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)); }