Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Root Motion For WI
Its not the best solution(Kinda Hacky) but it will work for general purpose.
If someone is very good at math please contact me([email protected])
Rules to follow for perfect Root Motion Implementation
Root bone must be point upward(Like a default bone in Blender).
Root boot should touch the ground always.
When animating Character Root bone ROTATION can only be animated in UP axis(Ex. In Blender its Z Axis rotation).
When animating Character Root bone POSITION can be animated for XYZ, No problem.
Application in Engine.
Enable RootMotion in AnimationComponent property window.
Set the RootBone(name should be same as you name in your desired 3D modelling software)
Attach a script component to AnimationComponent.
Do not rotate character(in which you will apply root deltas from LUA) other than Y Axis,
[Example: Lua Code]
[ExampleProject: https://drive.google.com/file/d/12RkdRpw61AEEGzKy9VhtLlFU0EWWwVcR/view?usp=sharing ]
[Beast Character Copyright - Frictional games(Amnesia The Bunker.)]
https://frictionalgames.com/general-faq/#mod-monetisation