I’m trying to set up a simple system for player to select items using the mouse. For some reason Line Trace By Channel isn’t hitting any of the actors I need it to hit. Some are meshes, and some are paper sprites, but none of them work.
You can see the collision settings I’m using for the actors in the second screenshot. I must be missing something.
Thanks for the response! Yes, I’ve tried that, and the problem is I’m not hitting any of the actors I want at all - I’m just hitting the sprite I have behind the actors as a background.
I want to hit the boxy-looking things there, but when I click them the trace goes right through them and hits the background.
Ok. I notice you’re tracing directly out of the camera. How do you align the camera with the objects you want to trace to? ( It looks like a kind of fixed side-scroller cam ).
I’m guessing it could be. You only have a line directly from the camera to the background, unless the camera happens to be exactly in front of something else.
Using the debug option would let you see where the trace is actually going.
In the long run, if you want to point at something with the mouse and trace to that, you need to project the mouse into world space.
Thanks for the suggestion. I’ve got it working already. Was line tracing from the wrong starting point - dumb mistake on my part. Casting from a line trace works just fine.