Hey I am currently scratching my head over this teeny tiny question:
Right now I’m casting an OverlapSphere
with radius pickupRadius
from my character to check for Item
s laying on the ground and picking them up.
However just last night I thought that I am doing a lot of unnecessary Sphere casts whenever there are no dropped items around. So I thought about moving the Sphere Cast to the dropped items, have them cast an OverlapSphere
with radius pickupRadius
, check for Player
and on collision add themselves to the inventory.
Right now I’m unsure which approach is better, since due to the hack’n’slash nature of the game, there can be many situations with an excess of items laying about, which are not going to be picked up. Ofc they will have a despawn timer, but still.