How can I get a line trace to hit an invisible sphere collider?
Right now I'm using LineTraceByChannel to extend out from the center of the camera to a pre-determined distance. I'm using this as part of an interaction system. I've got it reporting static meshes, things like floors and platforms, but what I'd like is for it to recognize the invisible sphere colliders surrounding certain actors - things like weapons, or buttons - so that the player doesn't necessarily need to hover EXACTLY over the actor to see that it's interactive. I'd like to have some kind of sphere or box collider around them that the line trace will hit, but the collider itself doesn't affect the actual actor's position or movement.
edit your colliders collision presets to ignore all the object responses and set block visibility in the trace responses only.
answered Jun 14 '17 at 01:37 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here