HI My game is Using a pawn class acter that is a Cube. I’m using event hit to set a variable call Can jump. I like if Can Jump to be set If the bottom of the cube hits and not the other sides.
“Jomp Power” “Jomp action logic” You can just use the default character movement for a lot of this. Or use linetrace from origin, on tick extending a unit or 2 below the character, to see if something intersects there.
If your objects are flat, you can use Hit Normal and compare it against Vector(0,0,1). You can use Dot Product to do that. If the result is around 1, it means you’re hit from below.
If your objects are not flat, do the same but with difference in location:
P.S. I mixed up the vector in Subtract. You need to Subtract Hit Location for Actor Location, or else your Dot Product will be negative.
One problem with on hit is if you slide down a slope, but dont get your “jomp” back, you will not be able to “jomp” again until another event hit triggers that gives your jump back.