Checking object angle above Character

Hi There! So I would like to modify my jumping action basically (The jump last 1,75 sec), if there is anything above the char which is a flat surface it should stop the jump if the surface is anything else like rounded a bit or it has any slope/angle, jumping should go on. I think for this I may need some tracing which checks if the angle above the char is 90 degrees which only occurs when the surface is flat above it. Any idea how to do that ?:slight_smile: Thank You in advance!

1 Like

I think this is already coded into the character? ( could be wrong ).

At any rate, you can do an upward line trace and get the normal at the hit point ( it’s in the hit result breakout ).

2 Likes

The problem is with the basic jump if you reach an even surface faster then jump last, you will floating until the jump timer is off. If there is any angle of the surface it will rocket jump you away :slight_smile: which I wanted to keep, but stop the jump at even ones so there is no floating “glitch”.
So apparently Its solved! Thank You very much!
If anyone interested of the BP I attached my solution. Enjoy!


1 Like