Introduction to Game Development (E09: space, parenting, rotation)

Introduction to Game Development (E09: space, parenting, rotation)

Sebastian Lague

8 лет назад

111,886 Просмотров

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


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

@konstantinosdoxiadis427
@konstantinosdoxiadis427 - 01.06.2016 22:40

These are insanely good. If I had a credit card I would be a Patreon for sure but still underage :(

Ответить
@Jonah9004
@Jonah9004 - 27.08.2016 14:28

best series just what I needed thank you

Ответить
@LopogaX
@LopogaX - 18.10.2016 23:13

Awesome tutorial, do some courses in udemy

Ответить
@grandeXjmml
@grandeXjmml - 02.11.2016 00:16

why vector3.up doesnt have new .what is the purpose of new

Ответить
@loveisthemostpowerfulforce1397
@loveisthemostpowerfulforce1397 - 20.01.2017 09:12

Everything is so confusing, if you could explain all methods in deep detail and show what they do in examples, it would be more helpful.

Ответить
@andresmoge3227
@andresmoge3227 - 26.01.2017 02:00

Hey Mr! Thank yo for your videos. Finaly one programmer doing some creative stuff! And not just debug.Log.Til I Die! Peace Brother ! <3

Ответить
@hanyabdoun
@hanyabdoun - 26.02.2017 09:55

i love you man .... i just f love you .

Ответить
@unnesflash4917
@unnesflash4917 - 10.03.2017 22:13

can you make a video about Quaternions please , it would be really amazing .

Ответить
@Variedmultipl
@Variedmultipl - 26.03.2017 20:45

Really good and well explained tutorials. I would just suggest to explain and do transitions a bit slower to accompained you at the same time.

Ответить
@MichaelHsiu1
@MichaelHsiu1 - 03.05.2017 18:18

Well done. Thank you! :)

Ответить
@bobbo3634
@bobbo3634 - 05.05.2017 02:47

Awesome video! you make it so easy!

Ответить
@xviewmytubex
@xviewmytubex - 20.05.2017 20:38

I am new to C#/Unity game design and, I'm having trouble understanding how to code rotation for a tank game object. I've currently coded the standard horizontal, vertical movement with the Input.GetAxis();/Vector3(); methods but, I want to rotate the tank using the same arrow keys on keyboard already in use. Can all this functionality be coded with the same keys and, how so? Or, do I need another way to code the rotation. Also, I want to rotate a cylinder object of the tank that I'm using as the turret as, tanks have rotating turret (gun barrel). I appreciate any help from anyone. Thank you.

Ответить
@powerguido.2068
@powerguido.2068 - 29.09.2017 05:00

Thanks bro ;)

Ответить
@markovvoz8849
@markovvoz8849 - 27.01.2018 16:00

Gosh I dont understand anything

Ответить
@ansongearm1917
@ansongearm1917 - 16.03.2018 03:14

i confuse local and global all the time,thanks for this wonderful explanation

Ответить
@toreozyurek5087
@toreozyurek5087 - 19.03.2018 23:03

when I write transform.eulerAngles += Vector3.left* 180 * Time.deltaTime; cube rotates 90 degrees and stucks. other 4 directions works normal but left and right is broken. can you help me with the problem?

Ответить
@hamzahahmad1670
@hamzahahmad1670 - 02.06.2018 20:41

I can't thank you enough for these videos. Excellent quality material.

Ответить
@Justeeson
@Justeeson - 25.12.2018 21:47

If we're dragging the sphere to the Transform variable of the cube why do we need to set it to be equal to the transform again inside the start method?

Ответить
@rameshdalvi5923
@rameshdalvi5923 - 02.12.2019 16:08

Who is that one guy who dared to dislike this tutorial

Ответить
@ThatGuyDownInThe
@ThatGuyDownInThe - 04.01.2020 04:31

Man I've watched so many tutorials and now I'm actually starting to understand things. Thank you so much

Ответить
@calebburke91
@calebburke91 - 31.01.2020 07:28

These tutorials make c# easy to understand great video!

Ответить
@finnagarf743
@finnagarf743 - 27.04.2020 05:29

I played this video at .5 speed and... it sounded like he was talking slightly slower than an average talking speed.

Ответить
@abigsillay5226
@abigsillay5226 - 05.05.2020 11:08

who on earth disliked this??

Ответить
@ediuard3
@ediuard3 - 27.05.2020 21:57

Nice relativity lesson 👌

Ответить
@kyleme9697
@kyleme9697 - 26.06.2020 17:32

I have to say this is THE Definitive Guide for learning Unity from scratch. I've been watching videos for two months now and have learned a lot, but now finding and going thru this series everything is falling into place perfectly. Thank you so much !!

Ответить
@oop1761
@oop1761 - 30.06.2020 04:37

This is awesome, using what I learned so far I was able to make a first person controller on my own! Thank you for making this series.

Ответить
@jadhaddad8617
@jadhaddad8617 - 17.07.2020 19:52

When I write Input.GetKeyUp(KeyCode.Space) it doesn't work but every other key works. How??????

Ответить
@user-th8nx4cp7w
@user-th8nx4cp7w - 28.07.2020 01:32

Eeven tho I have learned programming for a bit, but I used to not understand how spacing work, this tutorial helped me a lot, it is very clear and easy to understand, also the pace is great as well

Ответить
@KVergot
@KVergot - 02.09.2020 20:01

Excellent content. Please keeping adding more content!

Ответить
@ziliestarrive
@ziliestarrive - 06.10.2020 01:00

Thank you, you are saving my life. For some reason my school didn't record their first labs and I missed them. These are very nice substitutes if not better than the intended labs.

Ответить
@lairlair2
@lairlair2 - 23.11.2020 23:56

Help? If I parent an object to another one with code during runtime (using transform.parent or .SetParent()), the parent is snapping to the child's position. Shouldn't it be the other way around? Am I forgetting something?
Edit: thank you for this cool series!

Ответить
@carlosdude64
@carlosdude64 - 19.12.2020 11:02

If you let the cube go for a very long distance (let's say Z: 1226) and have the if statement code as the .position version, when you press space the sphere goes back to 0,0,0 sure but, you wont be able to get a good look at it as it will whizz past so fast that you'll only be able to see it for about a frame or two every rotation

Edit: my guess is that since it still thinks that it's in the small radius that it was originally, and because we put a set speed, the rotation time isnt getting slower the farther away it's getting from the cube unlike in real life where it would take forever to do a full rotation

Either that or I'm just overthinking things because I'm doing this at two am

Ответить
@bastiaantheboss4976
@bastiaantheboss4976 - 21.12.2020 16:52

"Let's talk a bit about parenting"
Okay...

Ответить
@navidnavid5826
@navidnavid5826 - 13.02.2021 13:28

hi what is differnt between Direction and inverse Directiion in Transform?

Ответить
@PearlyFostter
@PearlyFostter - 06.03.2021 19:18

These are better than college classes

Ответить
@joachimschu4526
@joachimschu4526 - 06.04.2021 20:48

What would be an interesting topic is , how do get out of Gimbal lock and still using Euler angles. Like rotation around x is 90, 180, 270 deg.

Ответить
@dhanushkawijethunga
@dhanushkawijethunga - 21.05.2021 18:43

You are a perfect teacher. Can't thank you enough for doing this.. 💖

Ответить
@emeraldthunder
@emeraldthunder - 25.08.2021 20:25

Thank you for this, I've written games using the pygame library for some time now although as I get more and more ambitious it just seemed to be overcomplicated. This tutorial is helping me perfectly understand unity and the C# programming languages.

Ответить
@medhatrabie
@medhatrabie - 30.08.2021 09:06

amazing

Ответить
@jonny11995
@jonny11995 - 30.08.2021 13:52

I have done this with 4 objects (Two Parents and Two Child Objects) To rotate the Child Separately. Both of my Children Rotate together though, how do I differentiate a difference.

Edit: Managed it by created two transforms although one parent has a empty transform and I don't like how messy it is.

Ответить
@klauspeter2199
@klauspeter2199 - 29.09.2021 22:19

I can't put in words how happy I am about a tutorial that actually takes it's time to explain all these important fundamental things ❤️

Ответить
@JC-px9mk
@JC-px9mk - 17.02.2022 16:28

Thank you so much for creating these tutorials! I just love your calming voice and the way you explain things. It makes me want to learn more and I actually understand it rather than just mimic the things

Ответить
@kajtek8208
@kajtek8208 - 18.04.2022 19:01

i dunno if someone can see my comment but i have some issue. For example when i wrote "Input." i cannot see GeyKeydown, GetKey etc. options. How can i see those options in my code?

Ответить
@kenjutsukata1o1
@kenjutsukata1o1 - 01.03.2024 02:23

For some reason it really didn't like when I entered 'Vector3.one', but was fine with 'Vector3(1,1,1). I quadruple-checked my code vs yours and it was the same, so I'm wondering if it's something new with Unity since this series was made. Either way this series has been invaluable, so thank you for that!

Ответить