mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-22 20:35:24 +02:00
Object selection: Improve distance checks (#12974)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user