Game Development Reference
In-Depth Information
Unity uses “Horizontal” and “Vertical” as the two main directions for character control. They can
be confusing unless you understand their origin. Picture a simple 2D game played in a top-down
view. The character is moved forward in the up direction of your monitor and backward in the down
direction, the vertical directions. Strafing, or sideways movement, is left or right, the horizontal
directions. Now picture tipping the monitor down so that you are in a 3D world. “Vertical” movement
is forward or backward. “Horizontal” movement is left or right.
3.
Click to open the Vertical and Horizontal inputs at the top of the list (Figure 3-4 ).
Figure 3-4. The expanded Horizontal and Vertical inputs
The Name field determines how the input is accessed through scripting. The Descriptive Name and
Descriptive Negative fields will appear in the built game's configuration dialog at startup where the
player can remap the keys. In case you are wondering what Negative refers to, take a look at the
next four parameters. Instead of using separate inputs for, say, forward and reverse, Unity considers
them the same input. Internally, a positive number is generated when the W key is pressed, and a
Search WWH ::




Custom Search