Example #1
0
 public bool CollidesWithAdjustedObjectInfiniteY(BaseCollisionEntity other, float otherAbsX, float otherAbsZ)
 {
     return(this.GetBoundingBox().Intersects(
                new Microsoft.Xna.Framework.BoundingBox(
                    new Vector3(otherAbsX, -100f, otherAbsZ),
                    new Vector3(otherAbsX + this.Width - 0.01f, 100f, otherAbsZ + this.Depth - 0.01f))));
 }
 public bool CollidesWithObject(BaseCollisionEntity other)
 {
     return this.GetBoundingBox().Intersects(other.GetBoundingBox());
 }
 public bool CollidesWithAdjustedObjectInfiniteY(BaseCollisionEntity other, float otherAbsX, float otherAbsZ)
 {
     return this.GetBoundingBox().Intersects(
         new Microsoft.Xna.Framework.BoundingBox(
             new Vector3(otherAbsX, -100f, otherAbsZ),
             new Vector3(otherAbsX + this.Width - 0.01f, 100f, otherAbsZ + this.Depth - 0.01f)));
 }
Example #4
0
 public bool CollidesWithObject(BaseCollisionEntity other)
 {
     return(this.GetBoundingBox().Intersects(other.GetBoundingBox()));
 }