Hi everyone, I’m having trouble with a Line Trace For Objects in Blueprint in Unreal Engine 5.
My goal is for the player to aim and click on a drawer (an actor with a Static Mesh), and for the line trace to detect it so I can trigger a Timeline to open the drawer.
What I’ve already done:
- The drawer’s Static Mesh has collision enabled (
Query Only
andBlockAll
). - Object Type is set to
WorldStatic
, and I also tested withWorldDynamic
. - In the
LineTraceForObjects
node, I included bothWorldStatic
andWorldDynamic
. - I set
Draw Debug Type = For Duration
and confirmed that the trace line goes through the drawer. - Collision is visible in the Static Mesh Editor with “Show Collision”.
- I tested the mesh and it collides with the floor correctly.
What’s happening:
The trace goes through the drawer as if there’s no collision at all. I’ve double-checked everything mentioned above and I’m stuck. I really want to get this working because it’s a core mechanic of my project.
If anyone can help, even with a simple example Blueprint of an interactable object detected via Line Trace, I’d really appreciate it!