Get directional of movement(up down)

Hi i try to create runner game where my character jumping on platform so i need create system that turn on/off collision on my capsule component, can some one show haw i can get current directional Up/down of my character, i need this for checked if it move up i set physic to off and then it move down to one, because for now i using another method and it some times work and some times is not so i need add more checks

Sorry for bad English thx.

To get your player’s velocity, use the “Get Velocity” node. By default it will have ‘Target’ set to ‘self’. It will output a Vector3 which is your character’s velocity in X, Y, and Z direction. If the Z is negative, you’re falling. If the Z is positive, you’re going upwards.

omg so simple, big thx