Implemented Vec3 data type (it's a metatable, but this is the closest way we can emulate a data type in lua) that includes basic arithmetic for vectors:
Addition
Subtraction
Multiplication
Division
Magnitude (length of vector)
toString method for printing/displaying vectors to console/chat
The idea of these is to reduce the barrier to entry for script development.
This could eventually truncate the positional functions into a singular function.
Implemented Vec3 data type (it's a metatable, but this is the closest way we can emulate a data type in lua) that includes basic arithmetic for vectors:
The idea of these is to reduce the barrier to entry for script development. This could eventually truncate the positional functions into a singular function.