---
title: "Vector Maths"
content_type: tutorial
url: "https://learn.unity.com/course/beginner-scripting-old/unit/beginner-scripting/tutorial/vector-maths?language=en"
language: en
container_type: course
container_title: "Beginner Scripting"
container_url: "https://learn.unity.com/course/beginner-scripting-old.md?language=en"
unit_title: "Beginner Scripting"
unit_url: "https://learn.unity.com/course/beginner-scripting-old/unit/beginner-scripting?language=en"
standalone_markdown_url: "https://learn.unity.com/tutorial/vector-maths.md?language=en"
previous_title: "Update and FixedUpdate"
previous_url: "https://learn.unity.com/course/beginner-scripting-old/unit/beginner-scripting/tutorial/update-and-fixedupdate?language=en"
previous_markdown_url: "https://learn.unity.com/course/beginner-scripting-old/unit/beginner-scripting/tutorial/update-and-fixedupdate.md?language=en"
next_title: "Enabling and Disabling Components"
next_url: "https://learn.unity.com/course/beginner-scripting-old/unit/beginner-scripting/tutorial/enabling-and-disabling-components?language=en"
next_markdown_url: "https://learn.unity.com/course/beginner-scripting-old/unit/beginner-scripting/tutorial/enabling-and-disabling-components.md?language=en"
difficulty: beginner
duration_minutes: 15
unity_version:
  - "2019.3"
  - "2019.2"
  - "2019.1"
  - "2018.4"
  - "2018.3"
  - "2018.2"
  - "2018.1"
  - "2017.4"
  - "2017.3"
  - "2017.2"
  - "2017.1"
  - "5.x"
  - "4.x"
supported_unity_versions:
  - name: "2019.3"
    url: "https://learn.unity.com/tutorial/vector-maths.md?language=en&version=2019.3"
  - name: "2019.2"
    url: "https://learn.unity.com/tutorial/vector-maths.md?language=en&version=2019.2"
  - name: "2019.1"
    url: "https://learn.unity.com/tutorial/vector-maths.md?language=en&version=2019.1"
  - name: "2018.4"
    url: "https://learn.unity.com/tutorial/vector-maths.md?language=en&version=2018.4"
  - name: "2018.3"
    url: "https://learn.unity.com/tutorial/vector-maths.md?language=en&version=2018.3"
  - name: "2018.2"
    url: "https://learn.unity.com/tutorial/vector-maths.md?language=en&version=2018.2"
  - name: "2018.1"
    url: "https://learn.unity.com/tutorial/vector-maths.md?language=en&version=2018.1"
  - name: "2017.4"
    url: "https://learn.unity.com/tutorial/vector-maths.md?language=en&version=2017.4"
  - name: "2017.3"
    url: "https://learn.unity.com/tutorial/vector-maths.md?language=en&version=2017.3"
  - name: "2017.2"
    url: "https://learn.unity.com/tutorial/vector-maths.md?language=en&version=2017.2"
  - name: "2017.1"
    url: "https://learn.unity.com/tutorial/vector-maths.md?language=en&version=2017.1"
  - name: "5.x"
    url: "https://learn.unity.com/tutorial/vector-maths.md?language=en&version=5.x"
  - name: "4.x"
    url: "https://learn.unity.com/tutorial/vector-maths.md?language=en&version=4.x"
last_updated: "2026-08-04T14:21:31.000Z"
---

# Vector Maths

Review core vector math concepts, including Dot and Cross products, for beginner scripting in Unity.

A primer on Vector maths - as well as information on the Dot and Cross products.

This tutorial is included in the [Beginner Scripting project](https://learn.unity.com/project/beginner-gameplay-scripting).

Previous: [Update and FixedUpdate](https://learn.unity.com/tutorial/update-and-fixedupdate?projectId=5c8920b4edbc2a113b6bc26a)

Next: [Enabling and Disabling Components](https://learn.unity.com/tutorial/enabling-and-disabling-components?projectId=5c8920b4edbc2a113b6bc26a)

## 1. Vector Maths

[Video](https://connect-mediagw.unity.com/h1/20220104/videos/661641eb-5ba6-45ee-b592-4da8188d850a_U_Beginner_9_VectorMaths.mp4) ([Transcript (en)](https://connect-mediagw.unity.com/h1/20220104/dc34195a-d2f7-4bf9-b8be-5749a9dcde18_B_09_Vector_Maths_v.2.0.vtt))

For more on these topics, please see the Unity Manual:

**Vector2**

[https://docs.unity3d.com/ScriptReference/Vector2.html](https://docs.unity3d.com/ScriptReference/Vector2.html)

**Vector3**

[https://docs.unity3d.com/ScriptReference/Vector3.html](https://docs.unity3d.com/ScriptReference/Vector3.html)

**Vector3.magnitude**

[https://docs.unity3d.com/ScriptReference/Vector3-magnitude.html](https://docs.unity3d.com/ScriptReference/Vector3-magnitude.html)

**Vector3.Dot**

[https://docs.unity3d.com/ScriptReference/Vector3.Dot.html](https://docs.unity3d.com/ScriptReference/Vector3.Dot.html)
