playMaker

Author Topic: What does 'Get Axis' or 'Get Axis Vector' actually do? [SOLVED]  (Read 3056 times)

ItzArranT

  • Playmaker Newbie
  • *
  • Posts: 45
This is probably either a silly or obvious question, but I was hoping someone could explain to me, in the simplest terms, what 'Get Axis' or 'Get Axis Vector' actually does when used as an action?

I'm aware all actions come with a brief description, but I'd love to know, on a slightly more technical level, what they mean and how they work.

Thanks all.
« Last Edit: July 03, 2017, 01:50:41 PM by ItzArranT »

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: What does 'Get Axis' or 'Get Axis Vector' actually do?
« Reply #1 on: July 03, 2017, 12:43:57 PM »
Its a thing in Unity's input manager: https://docs.unity3d.com/Manual/class-InputManager.html

Basically its an input that has a range between 0-1. Think of a trigger on a xbox controller, pressed halfway it would return the float value of 0.5

The vector returns the values of 2 axis at the same time, in a Vector3 variable. For example on a joystick for horizontal/vertical movement

ItzArranT

  • Playmaker Newbie
  • *
  • Posts: 45
Re: What does 'Get Axis' or 'Get Axis Vector' actually do?
« Reply #2 on: July 03, 2017, 01:50:23 PM »
Crystal clear.

Thanks terri :)