# How to rotate bone in C++?

**URL:** <https://forums.unrealengine.com/t/how-to-rotate-bone-in-c/284161>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 24, 2014, 11:25pm UTC](https://forums.unrealengine.com/t/how-to-rotate-bone-in-c/284161 "2014-05-24T23:25:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 25, 2014, 1:06am UTC](https://forums.unrealengine.com/t/how-to-rotate-bone-in-c/284161/2 "2014-05-25T01:06:37Z")

</div>

![6964-movebonefromcpp.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/6/bb6f7afb3d72c08bc91e962cf2a88629c3fa2af8.jpeg)

In this example above I am rotating a single bone from CPP which controls the creatures torso twist.

#Custom Animation BP

Make a custom Anim BP class (AnimInstance.h)

Make custom c++ variables for each of your intended ways of manipulating bones

Make Skeletal Controller Nodes within your custom Animation Blueprint

Attach your custom cpp variables to the Animation BP Skel Controller nodes

now you have the interface for adjusting your skeleton in cpp, but being able to preview settings inside the editor for visual confirmation of whether you have the right axis/direction in mind.

#Wiki Tutorials

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

**Anim BP Custom Logic via CPP**

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Rama

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-rotate-bone-in-c/284161)._
