What does this value actually output? I checked the scripting manual and it says...
'Returns the squared length of this vector (Read Only).'
What squared length? I thought a vector 3 was a point in 3d space?
What does this value actually output? I checked the scripting manual and it says...
'Returns the squared length of this vector (Read Only).'
What squared length? I thought a vector 3 was a point in 3d space?
A Vector3 is 3 floats collected together. What it means depends on what you're doing with it. Among other things, it can be a point in 3D space, or the rotation of an object expressed in euler angles, or a direction, in which case getting the length can be useful. For example, `Vector3(1.0, 0.0, 0.0)` has a length of 1, `Vector3(0.0, 2.0, 0.0)` has a length of 2. Therefore `Vector3(0.0, 2.0, 0.0).sqrMagnitude` returns 4, since 2 squared is 4.