Ejemplo n.º 1
0
 public bool CollidesWith(CannonStub other)
 {
     return(this.GetArea().Overlaps(other.GetOuterArea()));
 }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
 public bool CollidesWith(CannonStub other)
 {
     return(false);
 }