aboutsummaryrefslogtreecommitdiff
path: root/src/raycast.h
diff options
context:
space:
mode:
authorLars Müller <34514239+appgurueu@users.noreply.github.com>2022-10-30 16:53:14 +0100
committerGitHub <noreply@github.com>2022-10-30 16:53:14 +0100
commit077627181ee2eac3c0dacc3d8dc49825837e474c (patch)
treea8a6298198738f2edb30bd7e733a7a0d2005affa /src/raycast.h
parentb8292319924994352d56d6111faa73fe315d149a (diff)
downloadminetest-077627181ee2eac3c0dacc3d8dc49825837e474c.tar.xz
Allow rotating entity selectionboxes (#12379)
Diffstat (limited to 'src/raycast.h')
-rw-r--r--src/raycast.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/raycast.h b/src/raycast.h
index 734efd6ad..8da075738 100644
--- a/src/raycast.h
+++ b/src/raycast.h
@@ -74,4 +74,8 @@ public:
* @returns true if a collision point was found
*/
bool boxLineCollision(const aabb3f &box, const v3f &start, const v3f &dir,
- v3f *collision_point, v3s16 *collision_normal);
+ v3f *collision_point, v3f *collision_normal);
+
+bool boxLineCollision(const aabb3f &box, const v3f &box_rotation,
+ const v3f &start, const v3f &dir,
+ v3f *collision_point, v3f *collision_normal, v3f *raw_collision_normal);