Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

[Tutorial] Point to click movement with the new Input System & Cinemachine

Discussion in 'Input System' started by Yecats, Jun 25, 2022.

  1. Yecats


    Jul 13, 2014

    There are a lot of different types of movements that can be implemented in a game. Point to click is often times popular for strategy games, some RPGs, and many adventure games. In this tutorial you’ll move a single character around the scene based on where the player clicks their mouse, having them dodge obstacles and alternate between two types of movements; walking and running. A Cinemachine virtual camera will be used to automatically keep the player in focus while they move around the level.

    Learning Objectives
    You’ll learn many concepts, such as how to:

    • Use a Cinemachine virtual camera to automatically follow the player
    • Configure and hook into the new input system
    • Setup and use the navigation system
    • Rotate towards a direction before moving
    • You will need Unity 2021.3 LTS or later to follow along.
    • This tutorial assumes you already have basic knowledge of Unity and intermediate knowledge of C#.