Impulse a ball

How can I impulse a ball with a force using a key input?

Hey sonike-

You an add a key input to the blueprint node and drag off of the pressed event to an “Add Impulse” node that specifies the impulse you want to give the ball. You may want to also add an enable input node to allow the ball to receive input from the player.

Cheers

Hi ,

First I select a model, a ball, right click make a blueprint using it.
Then in graph I select input key “I”, but it just let me select addRadialForceComponent.

19532-2.jpg

When I press the key doesnt work.

If you turn off context sensitivity when you drag off of the Pressed event for the “I” key it should show up. If your asset is not a pawn then the “Add Impulse” node won’t show up by default.

Doing it in Level Blueprint works perfectly.

Thanks a lot!

Help please not working for me can u explaint it ?