playMaker

Author Topic: [SOLVED] Controller is grounded weirdness  (Read 5499 times)

MkAndersson

  • Guest
[SOLVED] Controller is grounded weirdness
« on: June 15, 2012, 03:39:22 PM »
Hello again!
I get this strange behaviour from the Controller Is Grounded action and it causes my jump button to malfunction/lag at times and prevent my player from jumping. Every time I move the grounded action starts flickering between true or false. False is set to a send player into a fall state and doesn't exit until grounded is true again. Once that is true it goes back to the jump checking state.

So because of the strange flickering, it constantly changes out of the jump state when I move.
Any idea on how to fix this because I have no idea :)

Cheers!
« Last Edit: July 11, 2012, 11:14:46 AM by Alex Chouls »

MkAndersson

  • Guest
Re: Controller is grounded weirdness
« Reply #1 on: June 18, 2012, 03:44:22 AM »
Haven't been able to fix the issue I'm having so I'm wondering
is this action bugged or am I the only one with this problem?
Just so I can rule that out if it isn't. Thanks!

SeanC

  • Junior Playmaker
  • **
  • Posts: 61
Re: Controller is grounded weirdness
« Reply #2 on: July 10, 2012, 01:25:15 PM »
I'm having this exact same issue. When i stand still, my check says "false", and when i start moving the check flickers back and forth between true and false. I thought maybe it had something to do with the fact that my character was colliding with a mesh collider, but i tried a ground made of a simple cube and got the same results.

I'm happy to post up some screenshots if necessary. Has anyone else run into this and been able to fix it?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Controller is grounded weirdness
« Reply #3 on: July 10, 2012, 02:45:29 PM »
Hi,

 The solution is to apply gravity to the movement vector you inject to the controller.

so set the y value of your move vector to -10 ( well -9.81 but you know...) and it will work without any glitches then.

 
bye,

 Jean

SeanC

  • Junior Playmaker
  • **
  • Posts: 61
Re: Controller is grounded weirdness
« Reply #4 on: July 10, 2012, 03:43:22 PM »
That worked! Excellent.

Thanks Jean

Sean

delgelato

  • Playmaker Newbie
  • *
  • Posts: 1
Re: [SOLVED] Controller is grounded weirdness
« Reply #5 on: July 15, 2013, 07:20:18 AM »
Sorry for bumping an old thread, but I'm having the same issue and even after giving the Y value a -10, it goes back to 0 when I start the game. Maybe this is another issue or I'm missing something.
If it turned out to be a silly mistake, I apologize as I'm very new to PM.