summaryrefslogtreecommitdiffstats
path: root/source/BoundingBox.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-02 19:51:13 +0200
committermadmaxoft <github@xoft.cz>2013-09-02 19:51:13 +0200
commitf5e0c8c77e66685f58a5013674c5f74a647d69a5 (patch)
tree1087aabcb5c0f7de47182e4a85b4d15838cb2c60 /source/BoundingBox.h
parentArrows deal damage. (diff)
downloadcuberite-f5e0c8c77e66685f58a5013674c5f74a647d69a5.tar
cuberite-f5e0c8c77e66685f58a5013674c5f74a647d69a5.tar.gz
cuberite-f5e0c8c77e66685f58a5013674c5f74a647d69a5.tar.bz2
cuberite-f5e0c8c77e66685f58a5013674c5f74a647d69a5.tar.lz
cuberite-f5e0c8c77e66685f58a5013674c5f74a647d69a5.tar.xz
cuberite-f5e0c8c77e66685f58a5013674c5f74a647d69a5.tar.zst
cuberite-f5e0c8c77e66685f58a5013674c5f74a647d69a5.zip
Diffstat (limited to '')
-rw-r--r--source/BoundingBox.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/BoundingBox.h b/source/BoundingBox.h
index cfaf6a318..ff9963989 100644
--- a/source/BoundingBox.h
+++ b/source/BoundingBox.h
@@ -64,11 +64,13 @@ public:
/** Returns true if this bounding box is intersected by the line specified by its two points
Also calculates the distance along the line in which the intersection occurs (0 .. 1)
+ Only forward collisions (a_LineCoeff >= 0) are returned.
*/
bool CalcLineIntersection(const Vector3d & a_Line1, const Vector3d & a_Line2, double & a_LineCoeff, char & a_Face);
/** Returns true if the specified bounding box is intersected by the line specified by its two points
Also calculates the distance along the line in which the intersection occurs (0 .. 1) and the face hit (BLOCK_FACE_ constants)
+ Only forward collisions (a_LineCoeff >= 0) are returned.
*/
static bool CalcLineIntersection(const Vector3d & a_Min, const Vector3d & a_Max, const Vector3d & a_Line1, const Vector3d & a_Line2, double & a_LineCoeff, char & a_Face);