Continue directional motion while jumping

I have begun working with Mecanim things are going fairly well although I have limited animations.

Everything is simple so far. I have an idle, walk, run, walk back, and then I have a jump. The jump is the problem. It is a jump from a standing still position. It works fine for now while i am learning and testing.

My question comes in when walking or running and then doing a jump. Is there anyway to continue the forward motion of the walk or run while doing the jump?

thanks!

For the jump you can just use a speed parameter to blend between a jumping straight up animation and jumping forward animation in a blend. I would probly adjust the speed parameter with some math and dampening since your input speed will always max out. I might use a calculation to get the characters actual velocity comparing position last update to current update and feed that into the speed parameter.

Transition condition to check for jump parameter Boolean could be the same as your jump in place.

Idk if there will be a animation where the character moves forward jumping that you can easily find to test.

Yeah i understand how to blend animations. I think what I was after was that I didnt have an animation that jumps forward. Just one that jumps up. Want ed to know if I could use a jump up when walking and just keep the forward motion from the walk while jumping. Just for testing. Till I can afford some more animations

so you don’t want to script in force or translation I assume , but you somehow want to get the root motion from one animation and apply it to another.

I guess you could try masks and mask out the root. Override your walking layer with a jump animation or blend depending which layer gets the mask. Easier to script some force.

edit-cant use override. Has to be additive