Hi guys just wondering what the best way to go about player and object interaction is.
Example my world is populated with many trees , when the player walks near a tree that he can cut down an option will appear eg ‘chop down tree’.
Now do I simply add a collision sphere/box to the tree and use it as a trigger. But then let’s say I have 1k trees won’t this cause performance problems.
Or the other option is to do a ray cast from the player to see if it hits the tree but then wouldn’t I have to constantly / every tick , cast the ray to see if it hit the tree which again I don’t think is a good idea.
So what are the options or best practices to use??