playMaker

Author Topic: Character Controller / Character Motor jump causing issues.  (Read 1261 times)

ShinfoKensei

  • Playmaker Newbie
  • *
  • Posts: 22
    • View Profile
Character Controller / Character Motor jump causing issues.
« on: February 06, 2015, 08: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.

https://www.youtube.com/watch?v=9B2tRECJj3A

What could be the issue here? I'm thinking it's Animator Cross Fade rather than Play Animation causing the problems here?

wetcircuit

  • Playmaker Newbie
  • *
  • Posts: 46
    • View Profile
    • wetcircuit.com
Re: Character Controller / Character Motor jump causing issues.
« Reply #1 on: February 06, 2015, 11:58:20 AM »
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...

ShinfoKensei

  • Playmaker Newbie
  • *
  • Posts: 22
    • View Profile
Re: Character Controller / Character Motor jump causing issues.
« Reply #2 on: February 07, 2015, 07: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.

ShinfoKensei

  • Playmaker Newbie
  • *
  • Posts: 22
    • View Profile
Re: Character Controller / Character Motor jump causing issues.
« Reply #3 on: February 09, 2015, 01:22:50 PM »
Bump. Still having issues with this and can't figure out why.

blackant

  • Sr. Member
  • ****
  • Posts: 411
  • http://blackantmaster.com
    • View Profile
    • blackantmaster.com
Re: Character Controller / Character Motor jump causing issues.
« Reply #4 on: February 10, 2015, 12: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