Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Martin-Vaupell on January 30, 2014, 03:04:14 PM

Title: [SOLVED]Get Axis Vector in (zero gravity physics)
Post 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  ?
Title: Re: Get Axis Vector in (zero gravity physics)
Post by: Martin-Vaupell on January 31, 2014, 04:54:47 AM

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 :(
Title: Re: Get Axis Vector in (zero gravity physics)
Post by: jeanfabre on January 31, 2014, 06:35:45 AM
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
Title: Re: Get Axis Vector in (zero gravity physics)
Post by: Martin-Vaupell on January 31, 2014, 06:54:19 AM
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?
Title: Re: Get Axis Vector in (zero gravity physics)
Post by: jeanfabre on January 31, 2014, 07:03:36 AM
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
Title: Re: Get Axis Vector in (zero gravity physics)
Post by: Martin-Vaupell on January 31, 2014, 07:20:19 AM

Oh right..  /facepalm

You're right! 

Thank you