From 7090841ccc43c64d5a1d9058071ebccaf6b52fc2 Mon Sep 17 00:00:00 2001 From: Peter Kohaut Date: Sun, 18 Feb 2018 22:18:41 +0100 Subject: BLADERUNNER: Support for running Fixed Runciter idle state Fixed movement track delay Basic combat support --- engines/bladerunner/boundingbox.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/bladerunner/boundingbox.cpp') 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; -- cgit v1.2.3