How To preserve Forward momentum of an anim throughout another anim?
When our character jumps forward and then transitions to the fall animation all momentum is lost and it looks weird.
Please see this video
So far, I tried (multiple combinations of):
Enabling "animate physics" in the animator
Setting the rigidbody to NOT be kinematic
Enabling the rigidbody's gravity
Setting the rigidbody.velocity to the character controller's velocity
Setting the velocity using AddForce() instead (tested all force modes)
Disabling "apply root motion" on the animator
Praying to John Carmak
Eating my vegetables
What I have been doing is enabling those setting right when I exit the jump's state machine and reverting back when landing on the ground. (Also tried toggling earlier in the jump's state but it didnt seem to help)
Except for the fall animation, every anim in this video uses root motion. When I say "except" I mean it's rotation and xyz motion are all set to "bake into pose" (Yes, I tried not baking, didnt help).
I think the issue is that the fall anim has no movement since its just a pose were the arms and feet are wiggling.
The way I see it I have to either figure out the math to handle trajectories and author the root motion myself (if you know the math please enlighten me!)
OR
Figure out how to do it with the rigidbodiy.... which isnt working so far.
Thank you for reading!
Fred.