Tutorial How To Move Rotate and Control 3D Object With Arrow Keys in Unity  Software Game

Tutorial How To Move Rotate and Control 3D Object With Arrow Keys in Unity Software Game

Alexander Zotov

2 года назад

10,694 Просмотров

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


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

Mikhail Humphries
Mikhail Humphries - 27.09.2023 23:34

When you coming back to make tutorials?

Ответить
ILikeTrains
ILikeTrains - 07.06.2023 11:38

Been 1 year already, the legend still didn't come back😢😥

Ответить
Roy [ Random Precision Software ]
Roy [ Random Precision Software ] - 15.02.2023 00:16

Have you stopped making videos?

Ответить
Akin Yaman
Akin Yaman - 10.02.2023 00:13

great man thanx

Ответить
Ali Rana
Ali Rana - 08.02.2023 18:54

Hi,
hope you are doing good,
Plz make a video on under water player movement
thanks

Ответить
Raksana
Raksana - 13.11.2022 13:28

Александр, у вас супер крутые видео! Есть ли у вас в планах создать видео про добавление рекламы Unity Ads или Admob?

Ответить
Orhan Gunes
Orhan Gunes - 29.08.2022 21:49

Mr.Alexdander where are u pls come back

Ответить
EmberDragons
EmberDragons - 26.08.2022 18:19

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

public class groundcontrol : MonoBehaviour
{
public float move = 0f;
public float moveSpeed = 0f;
public float rotation = 0f;
public float rotateSpeed = 0f;
// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{
move = Input.GetAxis("Vertical") * moveSpeed * Time.deltaTime;
rotation = Input.GetAxis("Horizontal") * rotateSpeed * Time.deltaTime;
}

private void LateUpdate()
{
transform.Translate(0f, 0F, move);
transform.Rotate(0f, rotation, 0f);
}

}

Ответить
Walney moreira klein
Walney moreira klein - 24.08.2022 13:24

hello, your example of a 2d tank with the movement of the tower separated from the tank was good, I would like to do the same in 3d to look like the game world of tanks, as the tower rotates it takes about 5 seconds to leave position A to B rotating slowly to simulate a real tank and the turret when aiming with the mouse it also takes time until the aim arrives is not automatic, how to do this?

Ответить
UmbaranMilitia
UmbaranMilitia - 23.08.2022 09:25

Не давно нашёл одно из ваших видео, и оно мне очень помогло. Я старался попробовать создать игру в двухмерном пространстве на Юнити, и никак не мог найти хороший способ это сделать. Все остальние объеснения работали над елементами которие мне были не нужны, а в вашем видео именно всё было очень подробно рассказано и могло подойти к любои 2Д игре. Я понимаю, что вы больше ютубом не занимаетесь, но все равно, желаю вам успеха во всех ваших делах. Спасибо!

Ответить
Aaliyaan Khawaja
Aaliyaan Khawaja - 13.08.2022 07:24

I used wasd and arrow keys to make 2 player it was veryyyy glitchy

Ответить
helcio wagner
helcio wagner - 22.07.2022 16:47

Hi, Alexander. Why don't use Translate and Rotation inside Update method, instead of use them in LateUpdate? By the way, congratulations for the video

Ответить
A Külah
A Külah - 07.05.2022 00:46

thanks for all your videos

Ответить
JackTheAnimatorK618
JackTheAnimatorK618 - 30.03.2022 06:17

hi! i wanted you to teach me how to open door with a mouse click but not the button, just click the door and it will be open

Ответить
Лена Иванова
Лена Иванова - 21.03.2022 17:53

И чего ты добился: подписчиков 27к, а просмотров 1.5к... :( веди канал на родном языке, и народ потянится...

Ответить
Лена Иванова
Лена Иванова - 21.03.2022 17:50

А русские уже и по русски разговаривать разучились ?

Ответить
Александр Колесник
Александр Колесник - 15.03.2022 15:00

Привет, учился по твоим видео и они мне очень помогли. но в последнее время видео стали немного однообразными(типа игра другая, но суть того ка она сделана была уже в других твоих видео).Можешь сделать интересный урок по Events или как правильно делать пул объектов.

Ответить
YOUR REST
YOUR REST - 14.03.2022 12:51

Супер крутой и простой код, спасибо :)
Хорошо, что вы решили заняться движениями 3д-объектов вместо 2д. Они сложнее или проще, чем 2д?

Ответить
Faris Dizdar
Faris Dizdar - 05.03.2022 20:30

Great video, I would like to see how to make 2d player controller in which you rotate rigidbody and move rigidbody by the way it is facing

Ответить
Walney moreira klein
Walney moreira klein - 03.03.2022 18:14

show, how do you shoot and aim like world of tanks?

Ответить