video thumbnail 10:29
Introduction to Game Development (E09: space, parenting, rotation)

2016-05-21

[public] 85.0K views, 2.88K likes, 5.00 dislikes audio only

Welcome to episode nine of this introduction to game development in Unity with C#.

In this episode we'll discuss the difference between global, object, and local space. We'll also look at how to parent, scale, and rotate objects through code.

Project files:

https://github.com/SebLague/Intro-to-Gamedev

If you'd like to support these videos, you can make a recurring monthly donation (cancellable at any time) through Patreon: http://bit.ly/sebPatreon

Or a once-off donation through PayPal:

http://bit.ly/SupportGamedevTutorials

Should you wish to contribute subtitles to this video, you can do so here: http://www.youtube.com/timedtext_video?ref=share&v=Q1xZGt41N80


unparent the sphere from the cube
/youtube/video/Q1xZGt41N80?t=125.56
parent the sphere object to the cube
/youtube/video/Q1xZGt41N80?t=205.41901
increase the euler angles over time
/youtube/video/Q1xZGt41N80?t=298
rotate it on the y axis
/youtube/video/Q1xZGt41N80?t=306.88
use the shorthand vector 3 dot up
/youtube/video/Q1xZGt41N80?t=351.88
rotating around its global y axis
/youtube/video/Q1xZGt41N80?t=384.21899
try setting the scale of our sphere object from the script
/youtube/video/Q1xZGt41N80?t=525.52899
experiment with setting the position versus the local position
/youtube/video/Q1xZGt41N80?t=559.15997