Unity Tutorial: Everything you need to know about Vectors

Поділитися
Вставка
  • Опубліковано 26 сер 2024
  • 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):
    docs.unity3d.c...
    docs.unity3d.c...
    Tutorials relying heavily on Vectors (learn the practical skills using the theory from this video):
    Top Down RPG Movement: • Unity Tutorial: RPG mo...
    Top Down Shooter Movement: • Unity Tutorial: Top do...
    Dashing: • Unity Tutorial: Dashin...
    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

КОМЕНТАРІ •