Vector3:operator+(vec2)

Version added: before 9.5

Adds two vectors and returns the result as a new vector

ArgumentTypeDescriptionDefaultVer
vec2Vector3A vector to add to the first one< 9.5

Return type (Vector3): the sum of two vectors

Adds two vectors and returns the result as a new vector. This operator makes it possible to add two vectors as if they were regular numbers. Example: c = a + b.