How do I use floats in chaiscript? It seems that chaiscript does not support floating point literals (3.14f), and only doubles. This is fine, but how do I call functions that take floats, rather than doubles?
As it is, I have glm’s vec3 class bound to chaiscript. But, I can’t construct it like this:
var foo = vec3(1.0, 2.0, 3.0);
because chaiscript does not convert those doubles to floats. To construct the object, I have to do this:
var foo = vec3(float(1.0), float(2.0), float(3.0));
Is this intentional? Would be possible to add floating point literals into chaiscript? Thanks