playMaker

Author Topic: about Get Axis Vector [SOLVED]  (Read 3829 times)

sefou

  • Playmaker Newbie
  • *
  • Posts: 11
about Get Axis Vector [SOLVED]
« on: January 21, 2012, 08:40:18 AM »
Hello all,

i find a way to split Horizontal Axis and Vertical Axis in 2 parts. The reason is i want to use Vertical Axis for an Srafing animation .

Thanks.

NB: Sorry for my english.
« Last Edit: January 24, 2012, 04:25:21 PM by alexchouls »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: about Get Axis Vector
« Reply #1 on: January 24, 2012, 01:39:18 AM »
Hi,

 Get Axis vector is actually a convenient action combining the "Get axis" action. so simply use GetAxis for the horyzontal input and another "Get axis" with the vertical input.

 Is that clear?
 
Bye,

 Jean


sefou

  • Playmaker Newbie
  • *
  • Posts: 11
Re: about Get Axis Vector
« Reply #2 on: January 24, 2012, 01:54:39 AM »
OK.
Thanks.   :)

sefou

  • Playmaker Newbie
  • *
  • Posts: 11
Re: about Get Axis Vector [SOLVED]
« Reply #3 on: January 26, 2012, 05:24:52 AM »
hello jeanfabre,
there is a problem :

Get axis vector contains 2 arguments : vector and float value.

Get axis  only float value . I need vector value here.

Any advice ?

Thanks

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: about Get Axis Vector [SOLVED]
« Reply #4 on: January 26, 2012, 08:06:52 AM »
Hi,

 confused now :) You asked for splitting the vertical and horyzontal axis.

 Maybe you are getting confused about the weird Unity terminology. An Input is also called an Axis, it's only a one dimension axis. It's just a value ranging most likely between -1 and 1.

So What kind of value are you after?

If you actually need to inject the input value to move a gui element, then you simply need to use one of the actions. If the actions requires a vector, simply create a variable and inject the input on the axis you want ( the up, forward, or right axis).

 Hope this is clear. else can you explain what you are after and what you want to do exactly with the user input.

 Bye,

 Jean

 Bye,

 Jean

sefou

  • Playmaker Newbie
  • *
  • Posts: 11
Re: about Get Axis Vector [SOLVED]
« Reply #5 on: January 27, 2012, 12:58:44 AM »
It's clear.

Thanks Jean.  ;)