Box Trace by Channel and Spline Mesh

Hello UE community !

I’m trying to find a way to hit a spline mesh from an actor BP via a Box Trace by Channel.

I’ve enabled collision on my spline but my Box Trace can’t hit it.

Everything is working fine with a simple box mesh actor BP.

Do you guys know a workaround to hit a spline mesh with a box trace ?

Thank you very much for your time and help.

Alex

Hey there @AlexMeauxMotion! Welcome back to the community! I’m unable to replicate the issue with a simple mesh (the base cube) when used to make a spline mesh. Could I see the spline collision details and the BP? Does the mesh you’re using have a simple collision or only complex?

Here’s the test I ran for reference:

Result:
UnrealEditor_Y5ZXl78DcL

The box generating actor:

Spline collision properties:

2 Likes

Hey Thanks for your reply !

Here’s how my spline mesh is setup :

And here’s how my box trace is setup :

I’m checking if the actor it just hit has a tag “EdgeGrab”, if so, my logic continues.

As you can see, my Box Trace is setup inside of a function that is call out of the event tick when the character is falling.

Select the Add Spline Mesh Component node and have a look at its details panel. You’re tracing on the Visibility channel the spline mesh Ignores by default:

Adjust the settings there; you can set Collision preset to Custom and handle channels in a granular way.

2 Likes

Thank you so much ! Everything is working amazing now !

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.