# How can I rotate a bone using Skeletal Controls?

**URL:** <https://forums.unrealengine.com/t/how-can-i-rotate-a-bone-using-skeletal-controls/282173>\
**Category:** Community & Industry Discussion\
**Tags:** rotation, unreal-engine, question\
**Created:** [May 1, 2014, 2:53am UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-bone-using-skeletal-controls/282173 "2014-05-01T02:53:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Polygon\_Byte\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Polygon\_Byte\_1](https://forums.unrealengine.com/u/Polygon_Byte_1)\
**Post date:** [May 1, 2014, 2:53am UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-bone-using-skeletal-controls/282173/1 "2014-05-01T02:53:07Z")

</div>

So I’ve got an Animation Blueprint that has a Transform Bone SkelControl that controls a turret bone for a tank. I’ve created a custom C++ class called UTankAnimInstance that has a single property for the turret rotation.

Here is my blueprint graph:

Now this all works great in the preview window. I can change the yaw rotation to see the turret rotate. But when I get the animation instance from code (currently on a Tick), and try to adjust the rotation, the turret bone does not rotate.

Here is the code I am using to get the custom AnimInstance and increment the yaw rotation. This on the Tick function of the Pawn.

```
UTankAnimInstance* AnimInstance = Cast<UTankAnimInstance>(SK->GetAnimInstance());
AnimInstance->TurretRotation.Yaw++;

```

Am I supposed to call something to get the turret to update from code after I modify the variable?

Thanks.

---

<div class="post-metadata">

**Author:** ![Polygon\_Byte\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Polygon\_Byte\_1](https://forums.unrealengine.com/u/Polygon_Byte_1)\
**Post date:** [May 1, 2014, 3:03am UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-bone-using-skeletal-controls/282173/2 "2014-05-01T03:03:20Z")

</div>

So upon further thinking, I realized that I had a body instance setup for the turret which was preventing the AnimInstance from rotating the bone because it was driven from physics. Removing the body instance allows the bone to rotate properly now.

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [May 1, 2014, 5:29am UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-bone-using-skeletal-controls/282173/3 "2014-05-01T05:29:00Z")

</div>

#Resolved

“Removing the body instance allows the bone to rotate properly now.”

As near as I can tell, this thread is resolved

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [May 2, 2014, 7:46pm UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-bone-using-skeletal-controls/282173/4 "2014-05-02T19:46:50Z")

</div>

Hi Polygon Byte. I just wanted to make sure you were able to resolve your issue. If you still need any help, there was a **[thread on the forums](https://forums.unrealengine.com/showthread.php?3960-Tank-Controls-Barrel-with-mouse-Base-with-keys)** dealing with something similar. If everything is good, please comment and let us know. Thanks!

---

<div class="post-metadata">

**Author:** ![Polygon\_Byte\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Polygon\_Byte\_1](https://forums.unrealengine.com/u/Polygon_Byte_1)\
**Post date:** [May 5, 2014, 11:00pm UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-bone-using-skeletal-controls/282173/5 "2014-05-05T23:00:21Z")

</div>

Apologies for the late response. I have indeed solved my issue; however, I am dealing with a new issue. I will post a new question though as it doesn’t quite relate to this one. Thank you.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [July 4, 2014, 2:27pm UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-bone-using-skeletal-controls/282173/7 "2014-07-04T14:27:11Z")

</div>

Hi @giro,

It sounds like your question is a little bit different from this one. Would you mind posting a new question in order to prevent any possible confusion here?

---

<div class="post-metadata">

**Author:** ![takistudio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@takistudio](https://forums.unrealengine.com/u/takistudio)\
**Post date:** [February 12, 2015, 2:00am UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-bone-using-skeletal-controls/282173/9 "2015-02-12T02:00:17Z")

</div>

Yeah I’d like to know the answer as well. I remember tanks in udk can easily have body on turret and works well.
