Hi,
In previous versions, there were two seperate options for root motion “Enable root motion translation” and “Enable root motion rotation”. But starting from 4.6, these were replaced by only one option to enable or disable the root motion. How can we enable or disable the root motion rotation only?
I hope we can get an answer asap. Updating from 4.5 to the recent versions broke every animation with enabled root motion, as the root motion rotation is enabled by default.
Right now as far as i know (as of 4.8) there is no way to disable root motion rotation specifically.
The way i overcame this was by :
Override the CharacterMovementComponent class with your own custom one in C++
Add a bool for root motion rotation toggle.
Override the PerformMovement function and here you can see two things :
- There will be a PhysicsRotation(deltaTime) call which applies rotation from the acceleration (user input).
- Below that will the code for root motion rotation.
Add in the bool to these parts (basically do PhysicsRotation(deltaTime) call when the bool is reset and do root motion rotation when the bool is set)
It would definitely be better if this was supported out of the box(like before in montages).
Did Epic ever address this issue? For some reason I get rotation in my root motion, even though the root bone only translates in one axis. Would be nice if we could disable rotation when it’s not needed.
not to my knowledge… the demand for it still exists. in general it would be more than handy to have a way to control, manipulate root motion before it is applied
There’s a Node in the Anim Graph called “Rotate Root Bone”. Perhaps you could program a setting in which you decide the value of this rotation in each desired case and trick the capsule rotation.
It has a Yaw and Pitch entries and also a “Mesh to Component” entry (which i’m not really sure of how to use sincerely).
This can work for changing the rotation references (typical for strafing and things like that), but for complex cases you’ll need to trick everything quite much…!