Disable input when ball in motion/rolling and enable if ball stop unreal engine

i am creating a rolling ball game where it keel rolling until it not hit with wall. i want to keep ball rolling with one time swipe or one time press button and not accept any movement until it not stop or hit with ball. i want to enable or disable the input to ball. disable input when ball in motion/rolling and enable if ball stop.

I don’t know what your roll logic is but after you’ve pressed the buton or swiped you can disable input and enable it when the velocity is 0.

I misunderstood then. You can add tags to your wall actors. When a ball hits something check if that actor has the tag you added and if it does then disable input.

this is not working.my ball stop rolling. if roll then roll just a bit

i am creating game like . where ball has to keep moving and stop after hit with wall and not accepting any movement until it not stop.

it slow down the ball movement.