public override bool CanCollide(IPhysicsBody thisBody, IPhysicsBody otherBody, Ignorer other) { AdvGroupIgnorer value = other as AdvGroupIgnorer; return (value == null || CanCollideInternal(value)); }
public bool CanCollide(AdvGroupIgnorer other) { if (other == null) { throw new ArgumentNullException("other"); } return(CanCollideInternal(other)); }
private bool CanCollideInternal(AdvGroupIgnorer other) { return(!GroupCollection.Intersect(ignoredGroups, other.groups)); }
protected AdvGroupIgnorer(AdvGroupIgnorer copy) : base(copy) { this.groups = new GroupCollection(copy.groups); this.groups = new GroupCollection(copy.ignoredGroups); }