diff options
| author | DS <vorunbekannt75@web.de> | 2022-11-20 21:27:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-20 21:27:47 +0100 |
| commit | 5f24a3c0c7630b2bad530aab7deeaa9468c59fd9 (patch) | |
| tree | d67c3640bbc28bbd8e814cded679664540340ac9 /src/client/activeobjectmgr.h | |
| parent | 475005012a0e34285e6301dca057720694c7ff4e (diff) | |
| download | minetest-5f24a3c0c7630b2bad530aab7deeaa9468c59fd9.tar.xz | |
Object selection: Improve distance checks (#12974)
Diffstat (limited to 'src/client/activeobjectmgr.h')
| -rw-r--r-- | src/client/activeobjectmgr.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/activeobjectmgr.h b/src/client/activeobjectmgr.h index 510b2d6e3..78147abd4 100644 --- a/src/client/activeobjectmgr.h +++ b/src/client/activeobjectmgr.h @@ -37,5 +37,12 @@ public: void getActiveObjects(const v3f &origin, f32 max_d, std::vector<DistanceSortedActiveObject> &dest); + // Similar to above, but takes selection box sizes, and line direction into + // account. + // Objects without selectionbox are not returned. + // Returned distances are in direction of shootline. + // Distance check is coarse. + void getActiveSelectableObjects(const core::line3d<f32> &shootline, + std::vector<DistanceSortedActiveObject> &dest); }; } // namespace client |
