I was wondering how would someone more experienced go about creating a first person interaction system.
Running a line trace from the camera on tick would be a bit too much especially if there are other calculations being run on tick.
Having a sphere collision around the player character or the object to interact with that’ll change a boolean allowing the tick to start tracing is the best solution I was able to come up with.
Can anyone share their thought on a better solution please?
So the line trace from camera on tick is actually very performant! Yes, your idea of using a sphere collision to allow it to activate is good, but just to clarify, line traces are also EXTREMELY lightweight, and the extra steps of using a collider to activate it is saving you very little, but feel absolutely free to do so for 100% performance reasons.