In this video I tried to cover as much useful information about Vectors in Unity as possible. We start by discussing what Vectors are, what useful properties they have then we go through most useful methods and at the end of the video I am giving 2 examples of solutions that require vectors.
This was until now the most challanging video to make. I hope you find it useful and enjoyable.
IMPORTANT NOTE:
Part about .Dot product contains an error - the .Dot returns value between -1 and 1 for NORMALIZED vectors. It can return other values than that if the we use vectors other than normalized.
Got any questions? Join our discord:
/ discord
Vectors in unity (documentation):
https://docs.unity3d.com/ScriptRefere...
https://docs.unity3d.com/ScriptRefere...
Tutorials relying heavily on Vectors (learn the practical skills using the theory from this video):
Top Down RPG Movement: • Unity Tutorial: RPG movement like in ...
Top Down Shooter Movement: • Unity Tutorial: Top down shooter move...
Dashing: • Unity Tutorial: Dashing like in Celes...
00:00 Intro
00:07 What are Vectors?
00:28 Important Properties - x, y, z
00:56 Important Properties - magnitude
01:02 Important Properties - normalized
02:12 Operations on Vectors - Adding
02:20 Operations on Vectors - * and /
02:36 Operations on Vectors - Equality
02:52 Core Vector Methods - Distance
03:08 Core Vector Methods - Lerp & Move Towards
04:10 Core Vector Methods - Reflect
04:39 Core Vector Methods - Dot
05:26 Core Vector Methods - Cross
06:12 Examples - 8 dir movement
06:48 Examples - Shooter movement
07:17 Outro
Watch video Unity Tutorial: Everything you need to know about Vectors online without registration, duration hours minute second in high quality. This video was added by user PitiIT 30 December 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 22,211 once and liked it 1 thousand people.