Ejemplo n.º 1
0
 /// <summary>
 /// A value indicating whether the hitbox intersects with another.
 /// </summary>
 /// <param name="dynamicHitbox">The other DynamicHitbox.</param>
 /// <returns>True if intersecting.</returns>
 public bool IntersectsWith(IDynamicHitbox dynamicHitbox)
 {
     return Bounds.Intersects(dynamicHitbox.Bounds);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// A value indicating whether the hitbox intersects with another.
 /// </summary>
 /// <param name="dynamicHitbox">The other DynamicHitbox.</param>
 /// <returns>True if intersecting.</returns>
 public bool IntersectsWith(IDynamicHitbox dynamicHitbox)
 {
     return(Bounds.Intersects(dynamicHitbox.Bounds));
 }