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:
parent
475005012a
commit
5f24a3c0c7
3 changed files with 49 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue