← Game Development with Unity learning path
Game Development with Unity · Module 4 of 10

Player input and movement

Move characters with keyboard, touch and controllers.

📖 Key ideas

  1. Input System package handles keyboard, mouse, touch and gamepads.
  2. Move with transform or physics (Rigidbody velocity/forces).
  3. CharacterController for walking characters.
  4. Camera follow with Cinemachine.
  5. Touch controls and virtual joysticks for mobile.
💡 Real-life example: Input is the steering wheel; movement code is the engine turning your commands into motion.
Input SystemUnity's modern input package
CharacterControllerComponent for character movement
CinemachineCamera control tool
Virtual joystickOn-screen mobile control