Unity Basic Movement 3D Tutorial for Beginners (Simple move & Jump with a Cube)

Unity Basic Movement 3D Tutorial for Beginners (Simple move & Jump with a Cube)

Buvesa Game Development

3 года назад

99,780 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Semour
Semour - 06.11.2023 04:58

I have a question for this, while it is working in my project, what if the object the player is standing on isnt "ground"? I could assign other objects the "Ground" tag which fixes this issue, but is that really the best practice for this? I feel like this would cause other issues in the future, for example if you are playing a building game and want something to have a different tag than "Ground". It also seems that since im using the default capsule collider that I am able to double jump when going up cubes in certain ways.

Ответить
tHEshAMOT
tHEshAMOT - 28.10.2023 19:40

Díky!

Ответить
Ciac
Ciac - 23.10.2023 03:01

Thank you so much!!!!!!!

Ответить
Ahmed7
Ahmed7 - 20.10.2023 05:50

banger

Ответить
Jar
Jar - 17.10.2023 07:24

For some reason when I tried to start it to test it wouldnt let me and kept saying something was wrong when i copied everthing down i think its cause i wasnt using a cube but Idk

Ответить
BackFromTheAsh
BackFromTheAsh - 14.10.2023 16:25

so nice finding a video that explaines what the code means instead of just giving it to me

Ответить
TohleJeMůjFakeEmail
TohleJeMůjFakeEmail - 08.10.2023 18:35

Hi buvesa

hmmm i got some errors it says

Assets\Scripts\MovementPlayer.cs(24, 38): error CS0117: "Vector3" does not contain a definition for foward

i am beginner so...

don't tell this anyone GIVING SUB :)))))

Ответить
Cheese Borgor
Cheese Borgor - 04.10.2023 21:49

where do i copy and paste the code?

Ответить
maitry kotak
maitry kotak - 16.09.2023 12:46

please put a button for up down left and right ...that will b much appreaciated,,,

Ответить
Crazy_gamer
Crazy_gamer - 05.09.2023 19:33

ფოქ იუ ბიჩ

Ответить
Lakethief
Lakethief - 02.09.2023 03:52

it doesnt do anything when im coding

Ответить
Lakethief
Lakethief - 02.09.2023 03:52

it makes the text gray tho

Ответить
2meat
2meat - 02.09.2023 03:50

how do i normalize the movement so the character doesnt move faster diagonally

Ответить
yoder
yoder - 28.08.2023 03:26

Could you not just check if player is grounded instead of having to tag all ground in your game?

Ответить
chicken nugget master
chicken nugget master - 26.08.2023 02:08

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class NewBehaviourScript : MonoBehaviour
{
public float speed = 5.0f;
private float horizontalInput;
private float forwardInput;

// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{
//get player input
horizontalInput = Input.GetAxis("Horizontal");
forwardInput = Input.GetAxis("Verical");

//move the player forward
transform.Translate(Vector3.foward * Time.deltatime * speed * forwardiput);
transform.Translate(Vector3.right * Time.deltatime * speed * horizontaliput);


}
}

Ответить
osiris 10
osiris 10 - 21.08.2023 20:34

this was really helpfull and made everything clear for me ty very much and keep up with good contents like this one

Ответить
Swist
Swist - 16.08.2023 11:18

Thanks your vid helped me! keep up the great work!👍

Ответить
ABHAY COACHING INSTITUTE EDUCATION CENTRE
ABHAY COACHING INSTITUTE EDUCATION CENTRE - 15.08.2023 09:28

yup your video is very helpful even in 2023

Ответить
Buff noob
Buff noob - 10.08.2023 08:18

Thank u so much

Ответить