- Home /
How can i jump my character immediately With Mecanim
I have a run and a jump animation. when i set a good looking transition it waits the end of run to jump, so it is not responsive. How can i setup a jump animation that can run immediately and have good looking transition?
Answer by npatch · Oct 22, 2015 at 06:22 AM
Have you looked at BlendTrees?
Seems to me you want a smooth transition from run to jump and back. If I'm not mistaken you can do a blend between them using the speed and a key or sth as the trigger for the transition to jump.
Answer by PictonicStudio · Oct 22, 2015 at 06:42 AM
What you are asking is possible.
You just need to click on your transition, and uncheck has exit time.
Thought of that but he mentioned a good looking transition and removing the exit time would be abrupt, which is why I mentioned BlendTrees. You can do much smoother transitions with them.
Answer by atmuc · Oct 22, 2015 at 07:15 AM
@npatch @PictonicStudio My major problem is delay. if there is delay after jump button is tapped, character will crash to an obstacle. For smooth transition, timing is important. Jump starts with the left foot. if player tap jump button when running is on the right foot smooth transition is not easy. maybe i can use mirrored states and check state's normalized time.
Try Pictonic's way but if it's not what you want and you want sth smoother,check out BlendTrees....You don't have to stop the run animation and start the jump so much as starting Jump before actually stopping the running animation to get a smooth transition. and then the weight of blending shifts towards the Jumping.
i tried BlendTree. result is not good because run and jump animation is not suitable for blendtree. i unchecked exit time and used original and mirrored jump animations. it works fine with normalized time. it uses right or left leg for proper jump.
Your answer
Follow this Question
Related Questions
How to stop mesh disappearing during Animator state transition blend time? 1 Answer
Mecanim transition condition can't have both bool and trigger? 0 Answers
What are those white curves in the animation transition panel - And can I read it in script? 0 Answers
Mecanim, Interrupting Transitions 1 Answer