Wall Slide make mesh match the angle of wall

Wall Slide BP


Legs are inside of wall and Arm is floating above:

Im trying to get my character mesh to match the angle of the wall its sliding on. i feel ive tried everything but i must be getting the math for the walls normal wrong. also some platforms are rotating and have a constantly changing normal/Angle. Any Help Will Be Greatly Appreciated!! Thanks In Advanced.

You might try

i feel this is a good starting point but i had to do set world rotation on the mesh because setting actor rotation makes character glitch really bad. also setting world rotation gives this effect:
During Wall Slide:

Once Landed Rotation is still applied:.

The problem with landing is something you have to code for, I’m afraid :smiling_face:

Glad it was of some help…

Thank you!!

how would i get him back to normal?

1 Like

I’ve never coded this kind of thing, but you need to be able to cope with the player landing sideways and so on.

I would say at every move, you might need to do a capsule trace ( in 5 directions ) to see where the next most likely surface is.

In this case, a sideways trace would find the floor, and then you can align the player, using the same method you just used for the wall :slight_smile:

It was a GIANT headache(7 Days Later) Ive got a Side Scroller Wall Slide System that matches wall face normal even if the “Wall” Is a 360° Spinning Platform. Still in the process of working out a couple bugs but all in all it has a very satisfying look to it. Thanks @ClockworkOcean for the help you truly are a Hero!

1 Like

Great to hear you got it working! :smiley: