Constrain item pickup range
This is a partial fix for #457 (closed) which is two issues:
- When the player is distant from a collectable item, but the camera is close, they can still collect the item (fixed in this MR)
- When the player is highlighting an item and zooming out, the item is no longer highlighted once the camera reaches a certain distance away.
The second issue relates to the distance we raycast from the camera to the object, which needs some sane limit. This can be bumped up to accomodate further zooming, but I suspect there is a performance cost associated, so it doesn't seem like a great fix.
So I might keep the issue open, but remove mention of issue 1.
-
By opening this merge request, you agree to release your code and all other changes under the GPL 3 license and to abide by the terms set by this license. -
Significant changes of this merge request have been added to the changelog.
Edited by S Handley