Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to rotate bone in C++?

So, how would I go about rotating a bone in a Skeletal mesh?

Product Version: Not Selected
more ▼

asked May 24 '14 at 11:25 PM in C++ Programming

avatar image

257 18 35 150

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

alt text

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


Anim BP Custom Logic via CPP



movebonefromcpp.jpg (261.7 kB)
more ▼

answered May 25 '14 at 01:06 AM

avatar image

10.6k 446 346 1088

avatar image TiagoLing Jul 27 '15 at 02:51 PM

How would you go about setting the "Torso rotation" in C++ code? I'm trying to do the same but the bone is acting weird when i move the actor.

avatar image ricco_igle Oct 15 '17 at 01:27 PM

@Rama I want to do this for all skeletal bones. Here I have realtime motion capture data from a custom made system which has 17 bones. I just want to implement these data in a skeletalmesh. As you have mentioned before do I need to create 17 "Transform(Modify) Bone" functions to do this? And how to get each bone reference to this function?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question