What does Vector3:Dot() Do?

So I’m not the best at math, and I wanna understand what vector3:Dot() does. Can someone explain in simple terms for me? xD

1 Like

It basically just determines if two vectors are going in the same direction. For example, you could use Dot if you want to only make a monster appear when the character is looking away from a part that spawns a monster.

:Dot() guide

3 Likes

Oh! Thanks so much! Big help! ^-^

2 Likes

it’s the dot product of those 2 vectors, also it takes another vector as a arugVector3.new():Dot(Vector3.new())

I dont mean to intrude, but just to add a tiny bit of specificity to the existing answer

Dot product functions very well to find if something is in front of or behind something, but its just a little more useful than that

You can probably see how you could easily use this to find if “a” is in front of or behind “b”, but you can also see that its not just a positive or negative
Basically, its the distance along “b” that “a” would make if you just brought it straight down relative to “b”
This is useful for countless things, like finding the angle between two vectors and many other more specified uses
I just thought Id tag this along with @1Urge’s solution

4 Likes