The lua reference documentation isn't the best of it's kind imho (nor is mine probably
), so I totally understand things can be a bit confusing.
A fun thing in lua is functions can return multiple values, I make use of that in the mentioned get function so you can fetch the vector object's internal variables in one statement like so:
You can then use the three normal number variables to do some manual (vector) math.
Hope that makes sense, I'll try to add some statement examples to the more off beat functions.
Thanks for the suggestion.
![Smile Smile](https://forums.ldraw.org/images/smilies/smile.png)
A fun thing in lua is functions can return multiple values, I make use of that in the mentioned get function so you can fetch the vector object's internal variables in one statement like so:
Code:
local x, y, z=myVec:get()
You can then use the three normal number variables to do some manual (vector) math.
Hope that makes sense, I'll try to add some statement examples to the more off beat functions.
Thanks for the suggestion.