Vector Maths
Tutorial
·
Beginner
·
+10XP
·
15 mins
·
(3365)
Unity Technologies

A primer on Vector maths - as well as information on the Dot and Cross products.
This tutorial is included in the Beginner Scripting project.
Previous: Update and FixedUpdate
Languages available:
1. Vector Maths
For more on these topics, please see the Unity Manual:
Vector2
https://docs.unity3d.com/ScriptReference/Vector2.html
Vector3
https://docs.unity3d.com/ScriptReference/Vector3.html
Vector3.magnitude
https://docs.unity3d.com/ScriptReference/Vector3-magnitude.html
Vector3.Dot
https://docs.unity3d.com/ScriptReference/Vector3.Dot.html