# Add Torque in Local Space

**URL:** <https://forums.unrealengine.com/t/add-torque-in-local-space/279784>\
**Category:** Blueprint\
**Tags:** torque, unreal-engine, Blueprint, question\
**Created:** [April 6, 2014, 7:19pm UTC](https://forums.unrealengine.com/t/add-torque-in-local-space/279784 "2014-04-06T19:19:50Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![3DMoss](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@3DMoss](https://forums.unrealengine.com/u/3DMoss)\
**Post date:** [April 6, 2014, 7:19pm UTC](https://forums.unrealengine.com/t/add-torque-in-local-space/279784/1 "2014-04-06T19:19:50Z")

</div>

How can I add torque to an actor in local space in Blueprint?

---

<div class="post-metadata">

**Author:** ![3DMoss](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@3DMoss](https://forums.unrealengine.com/u/3DMoss)\
**Post date:** [April 6, 2014, 8:21pm UTC](https://forums.unrealengine.com/t/add-torque-in-local-space/279784/2 "2014-04-06T20:21:58Z")

</div>

I figured it out. I needed to use Transform Direction function to convert local space to world space.

---

<div class="post-metadata">

**Author:** ![davvyk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@davvyk](https://forums.unrealengine.com/u/davvyk)\
**Post date:** [April 7, 2014, 9:24am UTC](https://forums.unrealengine.com/t/add-torque-in-local-space/279784/3 "2014-04-07T09:24:01Z")

</div>

Thanks for coming back with your answer. These forums are a bit bare on answers at the moment and any answer no matter how little might help someone.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8fba4913](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8fba4913](https://forums.unrealengine.com/u/anonymous_user_8fba4913)\
**Post date:** [October 14, 2014, 3:32pm UTC](https://forums.unrealengine.com/t/add-torque-in-local-space/279784/4 "2014-10-14T15:32:29Z")

</div>

do you mean convert world to local space ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8fba4913](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8fba4913](https://forums.unrealengine.com/u/anonymous_user_8fba4913)\
**Post date:** [October 14, 2014, 8:16pm UTC](https://forums.unrealengine.com/t/add-torque-in-local-space/279784/5 "2014-10-14T20:16:54Z")

</div>

Would be nice to have an Add Relative Torque option ?

---

<div class="post-metadata">

**Author:** ![Burnrate](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Burnrate](https://forums.unrealengine.com/u/Burnrate)\
**Post date:** [November 5, 2015, 6:14pm UTC](https://forums.unrealengine.com/t/add-torque-in-local-space/279784/6 "2015-11-05T18:14:03Z")

</div>

Do you have an example?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_65356a4f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_65356a4f](https://forums.unrealengine.com/u/anonymous_user_65356a4f)\
**Post date:** [August 11, 2016, 10:13pm UTC](https://forums.unrealengine.com/t/add-torque-in-local-space/279784/7 "2016-08-11T22:13:20Z")

</div>

some code would be nice

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0500cf20](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0500cf20](https://forums.unrealengine.com/u/anonymous_user_0500cf20)\
**Post date:** [November 17, 2016, 5:21am UTC](https://forums.unrealengine.com/t/add-torque-in-local-space/279784/8 "2016-11-17T05:21:21Z")

</div>

Another potential solution:

I realized I had “use controller pitch / yaw / roll” set to “true” in the details section of my physics-driven pawn. Unchecking those options finally let my pawn rotate freely using AddTorque.

(This was after trying converting the coordinate space on my torque vectors between world and local without any luck.)

![115234-rotationcontrols.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/b/7/7b77f304c7681da32e8e7071310cb960d25317df.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_98d3cf6b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_98d3cf6b](https://forums.unrealengine.com/u/anonymous_user_98d3cf6b)\
**Post date:** [November 17, 2016, 6:57am UTC](https://forums.unrealengine.com/t/add-torque-in-local-space/279784/9 "2016-11-17T06:57:37Z")

</div>

for who still needs solution

> **[Applying Torque in Local Space on a Physics-driven Pawn](https://forums.unrealengine.com/questions/495309/applying-torque-in-local-space-on-a-physics-driven.html)**
>
> I have a physics driven Pawn and I’m currently trying to add turning using ‘Add Torque’ and ‘Set Angular Velocity’. But it seems that these functions are world-space aligned, which is the opposite of what I want: I need this to be aligned to the mesh...

---

<div class="post-metadata">

**Author:** ![Podgyhodgy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Podgyhodgy](https://forums.unrealengine.com/u/Podgyhodgy)\
**Post date:** [May 3, 2017, 5:03pm UTC](https://forums.unrealengine.com/t/add-torque-in-local-space/279784/10 "2017-05-03T17:03:00Z")

</div>

For those still wondering about how the transform direction works in practice, here is an example of how to convert a global torque applied to a mesh into a local torque.

This example is rotating my teapot actor around the Z axis so you get a teapot spinning round on the flat floor. The torque being applied is in the Z axis only and its magnitude is stored in float variable Ztorque\_Pos (Pos is short for positive not for position).

![136664-add+torque+global+node.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/2/4/82468019fa5f912950ea21de1434bff1d28a1382.png)

This second image is how you transform that torque so that it matches the orientation of the teapot. Then, the teapot will rotate correctly on an angled surface for instance.

 ![136665-add+torque+global+node+made+local.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/6/9e6a5b639bea78fe233a20894e557a9575a96585.png)

Note that once transformed the torque vector will no longer have X and Y values equal to zero so you must feed all three x,y,z to the Add torque node.

The number 2 at the end of the names is not significant, I just made a second teapot with that name.

Time for a nice cup of tea I think.

---

<div class="post-metadata">

**Author:** ![Podgyhodgy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Podgyhodgy](https://forums.unrealengine.com/u/Podgyhodgy)\
**Post date:** [May 3, 2017, 5:03pm UTC](https://forums.unrealengine.com/t/add-torque-in-local-space/279784/11 "2017-05-03T17:03:52Z")

</div>

Example posted below

---

<div class="post-metadata">

**Author:** ![Podgyhodgy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Podgyhodgy](https://forums.unrealengine.com/u/Podgyhodgy)\
**Post date:** [May 3, 2017, 5:04pm UTC](https://forums.unrealengine.com/t/add-torque-in-local-space/279784/12 "2017-05-03T17:04:10Z")

</div>

Example posted below

---

<div class="post-metadata">

**Author:** ![Podgyhodgy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Podgyhodgy](https://forums.unrealengine.com/u/Podgyhodgy)\
**Post date:** [May 3, 2017, 5:04pm UTC](https://forums.unrealengine.com/t/add-torque-in-local-space/279784/13 "2017-05-03T17:04:46Z")

</div>

Answer posted below

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8fba4913](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8fba4913](https://forums.unrealengine.com/u/anonymous_user_8fba4913)\
**Post date:** [June 19, 2017, 2:23pm UTC](https://forums.unrealengine.com/t/add-torque-in-local-space/279784/14 "2017-06-19T14:23:40Z")

</div>

I think this may have changed now, I’ve found the node “get Relative Transform” does the job !

 ![190863-roll.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/4/744f915715186260f7b6ac7abf01e5fa7ffb07d4.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8fba4913](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8fba4913](https://forums.unrealengine.com/u/anonymous_user_8fba4913)\
**Post date:** [June 19, 2017, 2:42pm UTC](https://forums.unrealengine.com/t/add-torque-in-local-space/279784/15 "2017-06-19T14:42:31Z")

</div>

I’m not sure if its a new node but you can now call “Get Relative Transform” and specify the relevant object you want to check for it.

 ![190863-roll.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/4/744f915715186260f7b6ac7abf01e5fa7ffb07d4.jpeg)

---

<div class="post-metadata">

**Author:** ![issam1975](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/issam1975/32/967889_2.png) [@issam1975](https://forums.unrealengine.com/u/issam1975)\
**Post date:** [October 23, 2017, 11:30am UTC](https://forums.unrealengine.com/t/add-torque-in-local-space/279784/16 "2017-10-23T11:30:11Z")

</div>

thanks man !
