---
title: "Module 2 Videos"
content_type: tutorial
url: "https://learn.unity.com/course/programming-interactions-with-c-scripting-in-unity/unit/module-2-player-setup/tutorial/module-2-videos-3?language=en"
language: en
container_type: course
container_title: "Programming Interactions with C# Scripting in Unity"
container_url: "https://learn.unity.com/course/programming-interactions-with-c-scripting-in-unity.md?language=en&version=6.0"
unit_title: "Module 2:  Player Setup"
unit_url: "https://learn.unity.com/course/programming-interactions-with-c-scripting-in-unity/unit/module-2-player-setup?language=en&version=6.0"
standalone_markdown_url: "https://learn.unity.com/tutorial/module-2-videos-3.md?language=en&version=6.0"
previous_title: "Module 1 Challenge"
previous_url: "https://learn.unity.com/course/programming-interactions-with-c-scripting-in-unity/unit/module-1-project-overview-and-main-menu/tutorial/module-1-challenge-3?language=en&version=6.0"
previous_markdown_url: "https://learn.unity.com/course/programming-interactions-with-c-scripting-in-unity/unit/module-1-project-overview-and-main-menu/tutorial/module-1-challenge-3.md?language=en&version=6.0"
next_title: "Module 2 Assessment"
next_url: "https://learn.unity.com/course/programming-interactions-with-c-scripting-in-unity/unit/module-2-player-setup/quiz/module-2-assessment-3?language=en&version=6.0"
next_markdown_url: "https://learn.unity.com/course/programming-interactions-with-c-scripting-in-unity/unit/module-2-player-setup/quiz/module-2-assessment-3.md?language=en&version=6.0"
difficulty: intermediate
duration_minutes: 40
unity_version:
  - "6.0"
supported_unity_versions:
  - name: "6.0"
    url: "https://learn.unity.com/course/programming-interactions-with-c-scripting-in-unity/unit/module-2-player-setup/tutorial/module-2-videos-3.md?language=en&version=6.0"
last_updated: "2026-08-04T14:22:40.000Z"
---

# Module 2 Videos

Configure a cannon prefab by mapping Input System actions to rotate the barrel, move the wheels, and control player-driven motion.

_This module focuses on configuring the player-controlled cannon. Learners will explore the cannon prefab, connect Input System actions to its components, and implement functionality to tilt and turn the cannon as well as its wheels._

By the end of this module, learners will be able to:

- Understand the structure of the cannon prefab and its components.
- Map Input System actions to the rotation and movement of game objects.
- Apply input values to tilt and turn the cannon barrel.
- Synchronize the rotation of the cannon wheels with player input.

## 1. Exploring the Cannon Prefab

[Video](https://connect-mediagw.unity.com/h1/20250327/videos/7382eb84-7a03-4a00-a87c-36b6d1798dda_M2_01_exploring_the_cannon_prefab.mp4)

## 2. Adding the Cannon Tilt Input

[Video](https://connect-mediagw.unity.com/h1/20250327/videos/4a23cd22-ffdd-4d86-9228-9c245e87354a_M2_02_adding_the_cannon_tilt_input.mp4)

## 3. Tilting the Cannon barrel

[Video](https://connect-mediagw.unity.com/h1/20250327/videos/f7363021-69d6-43e9-ad36-b4d1b4fd8382_M2_03_tilting_the_cannon_barrel.mp4)

## 4. Turning the Cannon

[Video](https://connect-mediagw.unity.com/h1/20250327/videos/ca264477-3d09-4a26-a58b-7534fc1468b3_M2_04_turning-the_cannon.mp4)

## 5. Turning the Wheels

[Video](https://connect-mediagw.unity.com/h1/20250327/videos/3324b1f8-ad6d-4097-b334-99158e962acf_M2_05_turning_the_wheels.mp4)
