Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Martin-Vaupell on January 30, 2014, 03:04:14 PM
-
Scene with a spaceship and basic controllers
-> Get axis vector
----->moveVector
-> Controller Simple Move -- >moveVector
and got a Character controller on aswell.
It works fine, i can move the player etc.
However, when i go into project settings > physics and set gravity to 0
Get Axis Vector does not get input from Vertical and Horizontal anymore.
That means you can't control anything.
Any idea why ?
-
To test further i have added the movement vector to the inspector.
And while gravity is above or below 0 it works as usual
With gravity at 0 playMaker does not get input from horizontal or vertical :(
-
Hi,
Unity Character controller is not affected by gravity, it has its own setting for that.
I think the problem is elsewhere, can you debug the actual values of the action "Get axis" to make sure that indeed they are 0 or not.
bye,
Jean
-
Been looking into things..
Get axis is storing the vector3 correctly as shown in the video.
both with and without gravity.
SimpleMove does not move without gravity but moves fine with gravity
also shown in the video.
I'm using a "invisible" floor right now, but it sometimes gives the wrong effect
so i would prefer to go Zero gravity instead of the floor..
debug video
Any advice?
-
Hi,
You should not be using a character controller for this, but instead a regular physics object. All will be much easier and predictable then.
bye,
Jean
-
Oh right.. /facepalm
You're right!
Thank you