How do I get a ball object (metal) to jump in blueprints (player pawn)

Hey all,

So up until now I have only ever worked with characters in blueprints in my games. This time I made a metal marble pawn, got it to move with torque etc, but I want it to be able to jump. The issue is obviously with it being a pawn, it has no jump count, “isinair” check etc. I just did "inputaction jump - add impulse (z value) but of course I can just spam this repeatedly. I just want it to be it jumps, hits the ground and can jump again. Any help appreciated, thanks!

You could do a small line trace from the center of the ball to the -Z direction with a length of Radius + 5 or something to check if the ball is on ground before allowing to jump.

Something like this :

Thank you that worked perfectly! Didn’t think to use a line trace as been away from the engine for a while.

1 Like