# Is there a way to apply a force to a pawn in the direction of the camera?

**URL:** <https://forums.unrealengine.com/t/is-there-a-way-to-apply-a-force-to-a-pawn-in-the-direction-of-the-camera/381851>\
**Category:** Cinematics & Media\
**Tags:** force, unreal-engine, pawn, Blueprint, question\
**Created:** [January 14, 2017, 4:40pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-apply-a-force-to-a-pawn-in-the-direction-of-the-camera/381851 "2017-01-14T16:40:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inukshuk07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Inukshuk07](https://forums.unrealengine.com/u/Inukshuk07)\
**Post date:** [January 14, 2017, 4:40pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-apply-a-force-to-a-pawn-in-the-direction-of-the-camera/381851/1 "2017-01-14T16:40:02Z")

</div>

I’m making a game that revolves around the idea of billiards. I need to get the balls to act like pool balls (i.e. same mass, gravity, drag, etc.) My main priority is to get the balls to act like they’ve been struck by a pool stick. My idea was to use to apply force blueprint to shoot the ball at a high force in the direction the camera is facing. After attempting this, I came up with being able to launch the ball, but in the direction the ball itself is facing.

So, is there a way to get the force to be applied in the direction the camera is facing? Or in the direction the BP is facing?

---

<div class="post-metadata">

**Author:** ![Inukshuk07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Inukshuk07](https://forums.unrealengine.com/u/Inukshuk07)\
**Post date:** [January 14, 2017, 4:45pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-apply-a-force-to-a-pawn-in-the-direction-of-the-camera/381851/2 "2017-01-14T16:45:13Z")

</div>

![122042-blueprint.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/0/710ef60a0ae001e21ec817f753a20ddfc9c9729c.jpeg)

---

<div class="post-metadata">

**Author:** ![shotty46290](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shotty46290](https://forums.unrealengine.com/u/shotty46290)\
**Post date:** [January 14, 2017, 8:38pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-apply-a-force-to-a-pawn-in-the-direction-of-the-camera/381851/3 "2017-01-14T20:38:07Z")

</div>

It’s actually very simple, of course the way I set it up the camera was rolling with the ball lol, but here is a screen shot of the nodes

 ![122058-50.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/d/67d99f40325ba72f85e8db515977b283eec0d552.jpeg)

---

<div class="post-metadata">

**Author:** ![Inukshuk07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Inukshuk07](https://forums.unrealengine.com/u/Inukshuk07)\
**Post date:** [January 14, 2017, 8:40pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-apply-a-force-to-a-pawn-in-the-direction-of-the-camera/381851/4 "2017-01-14T20:40:10Z")

</div>

Thank you for your help. This worked perfectly.

---

<div class="post-metadata">

**Author:** ![shotty46290](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shotty46290](https://forums.unrealengine.com/u/shotty46290)\
**Post date:** [January 14, 2017, 8:46pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-apply-a-force-to-a-pawn-in-the-direction-of-the-camera/381851/5 "2017-01-14T20:46:27Z")

</div>

No problem good luck in your game

---

<div class="post-metadata">

**Author:** ![injust](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/injust/32/900176_2.png) [@injust](https://forums.unrealengine.com/u/injust)\
**Post date:** [March 18, 2024, 6:55pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-apply-a-force-to-a-pawn-in-the-direction-of-the-camera/381851/6 "2024-03-18T18:55:03Z")

</div>

For those looking for a solution to their roll a ball game where they want the force applied in the camera’s direction this worked perfectly. Thank you @shotty46290

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/1/2/312906414af30316d207db520ddbe3a7f5581636.png)

---

<div class="post-metadata">

**Author:** ![injust](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/injust/32/900176_2.png) [@injust](https://forums.unrealengine.com/u/injust)\
**Post date:** [March 18, 2024, 8:21pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-apply-a-force-to-a-pawn-in-the-direction-of-the-camera/381851/7 "2024-03-18T20:21:01Z")

</div>

Make sure to have accel change ticked for a better “feel”

---

<div class="post-metadata">

**Author:** ![xeffi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xeffi](https://forums.unrealengine.com/u/xeffi)\
**Post date:** [November 17, 2024, 10:04pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-apply-a-force-to-a-pawn-in-the-direction-of-the-camera/381851/8 "2024-11-17T22:04:45Z")

</div>

sorry for necro but fixed a few problems with that roll ball game solution.

it was using the camera’s pitch when controlling horizontal rolling, and some of the nodes could also be combined

hope this helps anyone making a rolling ball game! (speed is a float set to 35, adjust however)

 ![UnrealEditor_NpMsM8NZBU](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/b/6/7b63d7150b093130e3809982ea3880b2679cb322.png)
