macdonag wrote: |
Actually, if I follow your example (or something similar) and I try to create a new Vector (in Squirrel) eg:
local xxx = Vector3(1.0, 2.0, 3.0);
I get a runtime error saying wrong number of arguments.
Do I have to do something else to get it to recognise my constructor with multiple args? What is the simplest way of achieving this?
Thanks!
|
|
Yes: see the examples in testSqPlus2.cpp for custom constructor/variable args.