Embarking on your Unity journey? Dive right in with a fundamental skill: first-person character movement. This tutorial guides you through creating responsive, intuitive FPV (First-Person View) navigation for your 3D characters. By the end, you'll have a robust, customizable movement system that drives your game forward.

First, let's set the stage. We'll be using Unity's built-in character controller, which works interchangeably with both third-person and first-person models. So, whether you're a solo developer or part of a larger team, this tutorial accommodates both styles. Let's get started!

Setting Up Your Scene
Begin by creating a new Unity project. For this tutorial, we'll use the '3D with AR Foundation' template. This provides the necessary components for 3D game development and supports AR technologies if you're working on an AR game.

Next, import your preferred first-person model. You can find numerous free and paid assets online. Once imported, drag the model into your Hierarchy panel. Rename it 'FirstPersonModel' for clarity. Now, your scene is ready for programming.
Basic Character Movement

Before we dive into first-person movement, let's establish basic character controls. Create a new C# script, name it 'CharacterController', and attach it to your 'FirstPersonModel' in the Hierarchy panel. Open the script in your preferred code editor.
Player Input
Here, we'll use Unity's input system to capture player input. Add the following using directives and variables at the top of the script:

```csharp using UnityEngine; using UnityEngine.InputSystem; public class CharacterController : MonoBehaviour { public float Speed = 5.0f; public float GrabbingSpeed = 1.5f; private Vector2 move; private bool isGrabbing; } ```
These variables will determine your character's speed and grabbing speed. The 'move' Vector2 will store player input, and 'isGrabbing' will detect when the player engages the grab interaction.
Input Actions
Next, create an 'Input Actions' asset in the Project window. Name it 'PlayerInputs' and open it. Define the following actions:

- Jump - Button
- Run - Button
- Grab - Button
- Move - Vector2
Now, assign these actions to your 'CharacterController' script using the 'Input Controls' property in the Unity Inspector.
![Player movement tutorial [Unity3D]](https://i.pinimg.com/originals/6e/73/ac/6e73ac2ff8dc2b412009c2b527293703.jpg)








![[Unity 5] Tutorial: How to make a climbing system like in Assassins Creed in Unity - part 1](https://i.pinimg.com/originals/a0/ff/f0/a0fff088daee6cfd7e49faac722c627d.jpg)










Processing Input
Lastly, add the following 'OnFootMovement' function to your script, which runs each frame during gameplay:
```csharp
private void OnFootMovement(InputValue value)
{
move = value.Get This will process the 'move' input value each frame, allowing the player to control their character's horizontal and vertical movement. Now, you can move your character with the keyboard or gamepad!
Continue to the next section to elevate your character's movement with first-person handling...