align To Surface with Line trace by channe.. But...

hello guys so i started to study blue print and is going very well! i like this system but i come from C++ so…
I made this system to align my character to the surface in every inclination except when is in Fly mode.
But the problem is how i can set to ignore my function when i have one inclination like this? Thanks

My Blue print

And if can someone to explain me in Easy mode Step by step Thanks to everyone.

Any expert? :3

@Generaleivan1996 your pawn is moving along X & Z only ?

.
Z & x

i need to know if you know maybe how i can limit my pawn transformation.

Here is a way if you want to snap & align your character to the surface

Mhousse is on the money. Here’s why

4954872e1626a78972c6c18f942570f9ea4233a9.jpeg

Your trace [GREEN] Only looks straight down, which is okay ish, but when you’re on the side, it doesn’t hit anything

Mhousse’s fix changes this so that it checks along your characters “Down” vector

Thank you so after i used your blue print but my player character is immediately catapulted out of my map xD
on the Float Height what falue i need to put? thanks you.
5012a5808391d682a35d0cce48cdb11c57cba132.jpeg

the Height Value depends on where the pivot is on your character, try 0
if the character clips into the surface, increase it until it doesn’t

not too sure what’s causing the character to leave the map

Hey! I don’t know if you are still doin this but I might know a fix!

If before you SetAtorRotation check to see if the Z value in the Hit Result Normal is greater than a ceratin amount. From experience ive observed that;
For Walls/ 90* Angles, Z = 0
For Floors/180* Angles, Z = 1
For Ceilings/-180* Angles, Z = -1

So you might want to check if the Hit Normal’s Z value is greater than something around 0.5 before setting the rotation.