# How to add torque in a specific direction

**URL:** <https://forums.unrealengine.com/t/how-to-add-torque-in-a-specific-direction/662277>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, question, Blueprint\
**Created:** [October 4, 2022, 3:01pm UTC](https://forums.unrealengine.com/t/how-to-add-torque-in-a-specific-direction/662277 "2022-10-04T15:01:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fafarlando](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fafarlando](https://forums.unrealengine.com/u/Fafarlando)\
**Post date:** [October 4, 2022, 3:01pm UTC](https://forums.unrealengine.com/t/how-to-add-torque-in-a-specific-direction/662277/1 "2022-10-04T15:01:12Z")

</div>

Hi everyone! I am fairly new to UE and coding in general and I’ve run into something I can’t seem to figure out. I am using blueprints. So, I have a ball which I am moving using torque. (Specifically, the Add Torque in Radians node). I have set up a third person camera which can rotate around the player. The issue is that the torque is being added relative to world coordinates. Because of this, when I am looking at the face of the player, I am still moving forward relative to the world. I would like to figure out how to add torque to the x and y coordinates which are relative to the direction which the player is facing. How should I approach this using blueprints?  
Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![ZenLeviathan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zenleviathan/32/551307_2.png) [@ZenLeviathan](https://forums.unrealengine.com/u/ZenLeviathan)\
**Post date:** [October 4, 2022, 3:19pm UTC](https://forums.unrealengine.com/t/how-to-add-torque-in-a-specific-direction/662277/2 "2022-10-04T15:19:15Z")

</div>

Hey @Fafarlando, welcome to the forums!  
So from what I’ve understood from the question, it seems like you want to move forward in the direction the camera is facing, right? I think the best way to achieve this in blueprints is by using the node Get Camera Rotation, and I believe the initial target is the player camera. Then I would add the torque to the ball based on the camera’s rotation.  
I hope this can help you out, and let me know if you need more help!  
-Zen

---

<div class="post-metadata">

**Author:** ![Fafarlando](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fafarlando](https://forums.unrealengine.com/u/Fafarlando)\
**Post date:** [October 4, 2022, 3:48pm UTC](https://forums.unrealengine.com/t/how-to-add-torque-in-a-specific-direction/662277/3 "2022-10-04T15:48:03Z")

</div>

Thank you!  
So the issue is with the torque being applied in a linear way if that makes sense. My mesh is a head and it keeps rotating, however the force does not take into account the x y z coordinates of the component. That’s what’s confusing me. I’ll send screenshots of the way the BP’s are set up.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/d/15d0a932eefa5214fbde19710db06244a35c54b0.png)

---

<div class="post-metadata">

**Author:** ![Fafarlando](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fafarlando](https://forums.unrealengine.com/u/Fafarlando)\
**Post date:** [October 4, 2022, 3:48pm UTC](https://forums.unrealengine.com/t/how-to-add-torque-in-a-specific-direction/662277/4 "2022-10-04T15:48:34Z")

</div>

![2.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/9/9/5997694cc17a918c131077f137bd324d35b65a99.jpeg)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 4, 2022, 4:01pm UTC](https://forums.unrealengine.com/t/how-to-add-torque-in-a-specific-direction/662277/5 "2022-10-04T16:01:55Z")

</div>

> I would like to figure out how to add torque to the x and y coordinates which are relative to the direction which the player is facing.

To roll in the head’s forward direction with torque, you’d use its `Right Vector`. Some examples here:

> [@Third Person Camera in Rolling Template](https://forums.unrealengine.com/t/third-person-camera-in-rolling-template/497447/4):
>
> It could be as simple as this: But may need to be adjusted depending on what else is needed: but adding torque in the right direction is where Im having trouble You, kind of, solved it yourself - the Right Vector is key when working with torque.

> I have set up a third person camera which can rotate around the player.

If you want to roll the ~~ball~~ head in the camera’s direction, use the camera’s Right vector (or its springarm’s - depends on how you set it up). Namely:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/f/2df63a2144cd8507672cdab1e546047efa038d01.png)

---

<div class="post-metadata">

**Author:** ![Fafarlando](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fafarlando](https://forums.unrealengine.com/u/Fafarlando)\
**Post date:** [October 4, 2022, 4:15pm UTC](https://forums.unrealengine.com/t/how-to-add-torque-in-a-specific-direction/662277/6 "2022-10-04T16:15:51Z")

</div>

Thank you very much!
