コード例 #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))));
 }
コード例 #2
0
 public bool CollidesWithObject(BaseCollisionEntity other)
 {
     return this.GetBoundingBox().Intersects(other.GetBoundingBox());
 }
コード例 #3
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)));
 }
コード例 #4
0
 public bool CollidesWithObject(BaseCollisionEntity other)
 {
     return(this.GetBoundingBox().Intersects(other.GetBoundingBox()));
 }