Pickup system : sphere collision on the character or on the item ?

Hello,

my question is pretty straightforward, for a pickup system is it better/more optimized to have the sphere collision (aka pickup range) on the item or directly on the player?

Thanks in advance for any help

Whichever you prefer honestly, I’ve mostly seen it done on the items… but either would work

If you do it on the items it will be less event calls as the overlap will trigger less often

If you do it on the player… it’s gonna trigger all the time as you walk past things that may or may not implement pickup/have an inventory etc

Depends on how your wanting it to work, if it’s a simple walk over an item to pick it up id run the collision from the item. If you want the player to actively look at and pick up an item(like in elder scrolls or fallout game) id run a trace off of an input event from the player that checks for collectible items

Yep, I ended up using a line trace instead; it fits my gameplay better.