Recall & Review
beginner
What is the purpose of using Input.GetAxis in Unity?
Input.GetAxis reads the value of a virtual axis (like horizontal or vertical) and returns a smooth float value between -1 and 1, allowing smooth movement instead of instant jumps.
Click to reveal answer
intermediate
How does Input.GetAxis differ from Input.GetAxisRaw?
Input.GetAxis returns a smoothed value that gradually changes, while Input.GetAxisRaw returns the immediate input value without smoothing, which can be -1, 0, or 1.
Click to reveal answer
beginner
Why is smoothing input useful for character movement?
Smoothing input makes character movement feel natural and less jerky, similar to how a car accelerates smoothly instead of instantly jumping to full speed.
Click to reveal answer
beginner
Which Unity Input Manager axes are commonly used for 2D or 3D movement?
The "Horizontal" and "Vertical" axes are commonly used for player movement along the X and Z (or Y) directions.
Click to reveal answer
beginner
How can you use Input.GetAxis to move a character smoothly in Unity?
You read the axis value with Input.GetAxis("Horizontal") and Input.GetAxis("Vertical"), then multiply by speed and Time.deltaTime to move the character smoothly each frame.
Click to reveal answer
What value range does Input.GetAxis return?
✗ Incorrect
Input.GetAxis returns a float value smoothly changing between -1 and 1.
Which method returns immediate input without smoothing?
✗ Incorrect
Input.GetAxisRaw returns the raw input value instantly without smoothing.
Why use smoothing for player movement?
✗ Incorrect
Smoothing makes movement feel natural and less abrupt.
Which axes are default for horizontal and vertical movement in Unity?
✗ Incorrect
Unity's Input Manager uses "Horizontal" and "Vertical" axes for movement.
What should you multiply the axis value by to move smoothly over time?
✗ Incorrect
Multiplying by Time.deltaTime ensures smooth movement frame to frame.
Explain how Input.GetAxis helps create smooth player movement in Unity.
Think about how a joystick or keyboard input changes gradually.
You got /4 concepts.
Describe the difference between Input.GetAxis and Input.GetAxisRaw and when you might use each.
Consider how a car accelerates smoothly vs. a switch turning on instantly.
You got /4 concepts.