# How do I apply force to an actor when I hit a key?

**URL:** <https://forums.unrealengine.com/t/how-do-i-apply-force-to-an-actor-when-i-hit-a-key/2650434>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [August 24, 2025, 6:35am UTC](https://forums.unrealengine.com/t/how-do-i-apply-force-to-an-actor-when-i-hit-a-key/2650434 "2025-08-24T06:35:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RavagingRunt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RavagingRunt](https://forums.unrealengine.com/u/RavagingRunt)\
**Post date:** [August 24, 2025, 6:35am UTC](https://forums.unrealengine.com/t/how-do-i-apply-force-to-an-actor-when-i-hit-a-key/2650434/1 "2025-08-24T06:35:40Z")

</div>

I’m trying to create a beginner project - a soccer free-kick game. The ball is defined as an Actor with a physics-enabled static mesh (BP\_Ball).

How can I configure my Player to apply a force to the ball when I hit spacebar? The Enhanced Input is already working (the game displays ‘kick’ when I hit the spacebar), but I can’t figure out how to get BP\_Ball and apply a force to make it move.

Thank you for your time and help!

---

<div class="post-metadata">

**Author:** ![jay001020](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jay001020/32/1194524_2.png) [@jay001020](https://forums.unrealengine.com/u/jay001020)\
**Post date:** [August 24, 2025, 8:43am UTC](https://forums.unrealengine.com/t/how-do-i-apply-force-to-an-actor-when-i-hit-a-key/2650434/2 "2025-08-24T08:43:35Z")

</div>

![ball](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/d/c9d119e682d204fb6e8453d95aa0b404710f4058.jpeg)

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [August 24, 2025, 9:12am UTC](https://forums.unrealengine.com/t/how-do-i-apply-force-to-an-actor-when-i-hit-a-key/2650434/3 "2025-08-24T09:12:49Z")

</div>

Hey @RavagingRunt!

I also wanned to share my approach that I’ve been preparing meanwhile so it doesn’t go to waste, even tho the blueprint code above would work perfectly fine.

What I came up with allows us to interact with multiple balls while requiring the player character to get close enough to be able to kick.

Here’s how to set it up:

Inside your ball actor’s BP, navigate to the Components window on the top left and there, add a static mesh component _(which you already have I suppose but also make sure to have it as the root by dragging it over the default scene root)_ and a collision volume as its child like this:

 ![Screenshot 2025-08-24 114753](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/7/137eb2c91eabe3dfb1503b6b03006b261d9b0a7a.png)

Then while having your static mesh component selected, navigate to the Details window on the right side, and under the Collision section, set the collision preset to custom and set the Pawn class to be ignored like this:

 ![Screenshot 2025-08-24 111927](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/a/a0a6e52635a93ab4fee22880c315f40982a51fd4.png)

This way when the Simulate Physics property is enabled, our player character won’t be able to interact with the ball by walking over it since we want an input to be required for it.

Now inside our player character’s BP, implement this blueprint code into the Event Graph:

 ![Screenshot 2025-08-24 114735](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/7/8f77bdcf032fb42ad92f21b3edd9f50af762a66f.png)

And here’s the result:

  
Hope this helps! 😇

---

<div class="post-metadata">

**Author:** ![RavagingRunt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RavagingRunt](https://forums.unrealengine.com/u/RavagingRunt)\
**Post date:** [August 24, 2025, 6:57pm UTC](https://forums.unrealengine.com/t/how-do-i-apply-force-to-an-actor-when-i-hit-a-key/2650434/4 "2025-08-24T18:57:50Z")

</div>

Thanks Jay! This is exactly what I needed to get the ball moving.

---

<div class="post-metadata">

**Author:** ![RavagingRunt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RavagingRunt](https://forums.unrealengine.com/u/RavagingRunt)\
**Post date:** [August 24, 2025, 6:58pm UTC](https://forums.unrealengine.com/t/how-do-i-apply-force-to-an-actor-when-i-hit-a-key/2650434/5 "2025-08-24T18:58:30Z")

</div>

Thanks Vis. You actually answered the next question that I was going to ask 🙂
