Simple Player Movement in Unity Using C# (Unity Tutorial 2021)

Simple Player Movement in Unity Using C# (Unity Tutorial 2021)

Channel:
Subscribers:
11,500
Published on ● Video Link: https://www.youtube.com/watch?v=SqBrUxulRnI



Game:
Unreal (1998)
Category:
Tutorial
Duration: 7:05
1,884 views
51


In this video, I teach you all simple player/character movement in Unity using the C# programming language.
I usually don't make these sorts of videos and this is the first one I've made. If you enjoyed, a like, comment, and subscribe would be much appreciated!

P.S. Sorry about the vid quality and mic quality at the start :/ I don't know what happened with the vid quality to be honest, but it only recorded at 630x500 or something like that instead of 1360x768 like the current monitor (well, it's a tv lol) I'm using is. I rendered it at 720p and doesn't look too bad, but not the best imo.

Script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class walkscript : MonoBehaviour
{
public Rigidbody PlayerRigid;
public float m_speed;

void FixedUpdate(){
if(Input.GetKey(KeyCode.W)){
PlayerRigid.velocity = transform.forward * m_speed * Time.deltaTime;
}
if(Input.GetKey(KeyCode.A)){
PlayerRigid.velocity = -transform.right * m_speed * Time.deltaTime;
}
if(Input.GetKey(KeyCode.S)){
PlayerRigid.velocity = -transform.forward * m_speed * Time.deltaTime;
}
if(Input.GetKey(KeyCode.D)){
PlayerRigid.velocity = transform.right * m_speed * Time.deltaTime;
}
}
}

Follow me on Twitter:
https://twitter.com/omogonix

Forgehub:
https://www.forgehub.com/members/omogonix.87700/

Subscribe to my Second Channel:
https://www.youtube.com/channel/UCkylkvUtpvbHfafGfIdMLBQ/featured

Join my Discord:
https://discord.gg/a88vmGD

Facebook Page:
https://www.facebook.com/Omogonix/

Follow me on Instagram:
https://www.instagram.com/uwugonixhalo/

Itch.io:
https://omogonixlachlan.itch.io

Music Used:
Disfigure - Blank (From NCS):
https://www.youtube.com/watch?v=p7ZsBPK656s







Tags:
unity
unity tutorial
unity 2021
unity 2020
omogonix
tutorial
simple player movement unity
simple
simple character movement unity
simple player movement
simple character movement
game development
indie game development
c#
c# tutorial
how to use unity
how to use c#
coding
programming
gaming
video game
how to unity
game engine
how to make a game
how to move player in unity
player movement
character movement
unity 3d



Other Statistics

Unreal Statistics For Omogonix

Currently, Omogonix has 2,530 views for Unreal across 2 videos. His channel published less than an hour of Unreal content, making up less than 0.18% of the total overall content on Omogonix's YouTube channel.