[HOWTO] Animation C++
I want to know better an animation in UE4.
What I wonder, if you load an animation in the EU4 from C++ (VS2015) and i write the appropriate code. So I reason and I say that is loaded into RAM (stack, heap, what else...) with all related data of the animation. Then the animation loaded in RAM where there will be an object that contains all the data. I assume that there will be a class of that object. The thing that I have not realized yet. Which is the class???
Because i want to edit that animation data.
What i saw until now, it's there is a skeleton and a mesh. Then create an association between them and at last rigging.
I think there is a parent class over the skeleton class and the mesh class to do the association. But i repeat i don't know the class.
Can Anyone help me? thank you
asked Jul 13 '16 at 04:25 PM in C++ Programming
The class is called UAnimSequence.
For example, in UAnimSequence you can call GetBoneTransform which will extract the bone transform for a certain time for a certain track. You can choose to extract the raw data, or the processed one. The track is simply the bone in question (so the root bone is index 0, beyond that check your skeleton).
In AnimSequence.cpp you can look at ExtractBoneTransform (there are two of these, look at the longer one) - you can see how it gets the raw values directly.
answered Jul 14 '16 at 12:04 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here