What is magnitude used for?

question in the name of the post

can you guys tell me what to use it for and when to use magnitude?

I saw the dev forum and it said " Magnitude is a mathematical term which can mean several things. In vector theory, magnitude is the length of a vector."

but also why do you need the length of a vector?

1 Like

Wrong category, belongs in #help-and-feedback:scripting-support

This video may help you, also wrong category

1 Like

Also magnitude is the distance between two vectors.

An example would be 'I want to know how far the player is to the zombie so if they’re really close I kill them.

2 Likes

The length of a vector is important for checking the distance between two things

Magnitude returns the distance between two positions in studs.
For better understanding there are many tutorials you can take help from and one has already been provided.