/* This implementation is wrong * /// <summary> * /// Determines if there is an intersection between the current object and a triangle. * /// </summary> * /// <param name="vertex1">The first vertex of the triangle to test.</param> * /// <param name="vertex2">The second vertex of the triangle to test.</param> * /// <param name="vertex3">The third vertex of the triangle to test.</param> * /// <returns>Whether the two objects intersected.</returns> * public bool Intersects(ref Vector3 vertex1, ref Vector3 vertex2, ref Vector3 vertex3) * { * return Collision.BoxIntersectsTriangle(ref this, ref vertex1, ref vertex2, ref vertex3); * } */ /// <summary> /// Determines if there is an intersection between the current object and a <see cref="MyBoundingBox"/>. /// </summary> /// <param name="box">The box to test.</param> /// <returns>Whether the two objects intersected.</returns> public bool Intersects(ref MyBoundingBox box) { return(MyCollision.BoxIntersectsBox(ref this, ref box)); }