Get hit direction from CapsuleTraceForObjects?

Hello I have a capsule trace for my character that originates from the center, I’d like to be able to detect if the character is colliding on the wall from the left or right.

How would I go about getting this information from the hit result?

The trace does not rotate with my character so maybe that is why I’m having trouble, if this is the case I’d like to know how to go about doing this too

Thank you!

Don’t really understand why you would need trace for that, but that’s fine. Take a look at the first answer here: Check which direction the player was hit from? - Programming & Scripting - Unreal Engine Forums , is that helpful?

This is exactly what I needed thank you!

The system I have is a wallride so I needed to tell what side it was colliding on in order to play the corresponding animation and how the character would rotate.

I used two line traces at first but the capsule was more accurate in keeping rotation around surfaces that weren’t flat.