raycast check distance?
Thanks for your help, I've thought of a raycast, but the distance needs to be checked at a full 360 degrees.
Basically, it's an enemy model that comes across items to pick up. So I'm thinking it would look best if the item that is closest would be picked first. Unless a ray could still do that? These items come and go, so I'm checking every second if an item has respawned. So if the item appears behind the enemy, I want it to check if that is closer than any other item.