public bool CollidesWith(CannonStub other) { return(this.GetArea().Overlaps(other.GetOuterArea())); }
public bool CollidesWith(CannonStub other) { var minD = FloatMath.Max(this.Scale, other.Scale) * Cannon.CANNON_OUTER_DIAMETER / 2 + FloatMath.Min(this.Scale, other.Scale) * Cannon.CANNON_DIAMETER / 2; return((Position - other.Position).LengthSquared() < (minD * minD - 0.0001f)); }
public bool CollidesWith(CannonStub other) { return(false); }