1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Object selection: Improve distance checks (#12974)

This commit is contained in:
DS 2022-11-20 21:27:47 +01:00 committed by GitHub
parent 475005012a
commit 5f24a3c0c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 49 additions and 2 deletions

View file

@ -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