Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ShinfoKensei on February 06, 2015, 10:20:17 AM

Title: Character Controller / Character Motor jump causing issues.
Post by: ShinfoKensei on February 06, 2015, 10:20:17 AM
So I've got an issue, I think I might as well just show a video than try to explain it because I'm likely wrong in what I'm thinking.


What could be the issue here? I'm thinking it's Animator Cross Fade rather than Play Animation causing the problems here?
Title: Re: Character Controller / Character Motor jump causing issues.
Post by: wetcircuit on February 06, 2015, 01:58:20 PM
I think the "transition duration" of Animator Cross Fade is a percentage of the animation length, not an actual real world time.... I could be wrong.

There are a few actions where the "time" setting seems to be relative measurement, not a game constant. In this case, I think the transition setting is analogous to the transition fade time that you can set within a Mechanim transition. (0.25 would be 1/4 the length of the animation, 0.1 would be 1/10th)... again, I might be wrong.

So in your video, I am assuming the longer setting is blending the jump animation for so long that it is smothering the jump (why he seems to only jump a little, it is being blended with the idle). Try setting it to 0 which is basically no transition time at all and you will see the full jump...
Title: Re: Character Controller / Character Motor jump causing issues.
Post by: ShinfoKensei on February 07, 2015, 09:19:03 AM
Hey Wetcircuit, thanks for the reply :)

Towards the end of the video you can see that I did set the transition to 0. This leads to success on one or two jumps, but the majority are being sent back to idle immediately, I wonder if this is because it's checking for ground collision too soon, not giving the capsule a chance to actually move away from the ground. Perhaps I need a timer before it checks for the ground tag again?

Another thing I've noticed is, for some reason, my capsule sits above the plane the entire time, so maybe that's causing issues as well.
Title: Re: Character Controller / Character Motor jump causing issues.
Post by: ShinfoKensei on February 09, 2015, 03:22:50 PM
Bump. Still having issues with this and can't figure out why.
Title: Re: Character Controller / Character Motor jump causing issues.
Post by: blackant on February 10, 2015, 02:29:39 PM
if i'm right you should play with the character motor jump parameters and set something like 2 or 5 in jump height section