summaryrefslogtreecommitdiffstats
path: root/source/Tracer.h
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2013-11-05 22:19:49 +0100
committerSamuel Barney <samjbarney@gmail.com>2013-11-05 22:19:49 +0100
commite6ace0e4f26afba50df1ad21e399fd76e4fcb19e (patch)
tree9dbd03108f51ef6b2455ec38270fc3e459d9fafe /source/Tracer.h
parentAdded missing check for a_LineOfSight (diff)
downloadcuberite-e6ace0e4f26afba50df1ad21e399fd76e4fcb19e.tar
cuberite-e6ace0e4f26afba50df1ad21e399fd76e4fcb19e.tar.gz
cuberite-e6ace0e4f26afba50df1ad21e399fd76e4fcb19e.tar.bz2
cuberite-e6ace0e4f26afba50df1ad21e399fd76e4fcb19e.tar.lz
cuberite-e6ace0e4f26afba50df1ad21e399fd76e4fcb19e.tar.xz
cuberite-e6ace0e4f26afba50df1ad21e399fd76e4fcb19e.tar.zst
cuberite-e6ace0e4f26afba50df1ad21e399fd76e4fcb19e.zip
Diffstat (limited to '')
-rw-r--r--source/Tracer.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/Tracer.h b/source/Tracer.h
index dc393ae5e..bc348d955 100644
--- a/source/Tracer.h
+++ b/source/Tracer.h
@@ -18,7 +18,10 @@ public: // tolua_export
{
return Trace(a_Start, a_Direction, a_Distance, false);
}
-
+
+ /// Determines if a collision occures along a line. Returns true if a collision occurs.
+ /// When a_LineOfSight is true, we don't use the standard collision detection rules. Instead we use
+ /// the rules for monster vision. E.g. Only water and air do not block vision.
bool Trace( const Vector3f & a_Start, const Vector3f & a_Direction, int a_Distance, bool a_LineOfSight); // tolua_export
/// Contains the position of the block that caused the collision