aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/boundingbox.cpp
diff options
context:
space:
mode:
authorPeter Kohaut2018-02-18 22:18:41 +0100
committerPeter Kohaut2018-02-18 22:20:16 +0100
commit7090841ccc43c64d5a1d9058071ebccaf6b52fc2 (patch)
tree44fb7798096b66646039a34c6d4756e091bc700b /engines/bladerunner/boundingbox.cpp
parent1d69120112e16a74a9d101a0d4d9de04196d29de (diff)
downloadscummvm-rg350-7090841ccc43c64d5a1d9058071ebccaf6b52fc2.tar.gz
scummvm-rg350-7090841ccc43c64d5a1d9058071ebccaf6b52fc2.tar.bz2
scummvm-rg350-7090841ccc43c64d5a1d9058071ebccaf6b52fc2.zip
BLADERUNNER: Support for running
Fixed Runciter idle state Fixed movement track delay Basic combat support
Diffstat (limited to 'engines/bladerunner/boundingbox.cpp')
-rw-r--r--engines/bladerunner/boundingbox.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/bladerunner/boundingbox.cpp b/engines/bladerunner/boundingbox.cpp
index f7e7eca190..a1c79a17e7 100644
--- a/engines/bladerunner/boundingbox.cpp
+++ b/engines/bladerunner/boundingbox.cpp
@@ -50,6 +50,10 @@ bool BoundingBox::inside(float x, float y, float z) const {
&& z >= _vertices[0].z && z <= _vertices[1].z;
}
+bool BoundingBox::inside(Vector3 &position) const {
+ return inside(position.x, position.y, position.z);
+}
+
void BoundingBox::setXYZ(float x0, float y0, float z0, float x1, float y1, float z1) {
_vertices[0].x = x0;
_vertices[0].y = y0;