ok so i'm slowly hacking away at getting my core elements going
I've come across a pecularity that came up. I am using LuaJ. It has the problem that it's internvalues don't refer back to floats naturaly in it's enviroment. So if I
camera:setPosition(1.0, 2.0, 3.0); // in lua. This will fail. Ok so I came up with a solution
SimplerVector v = camera:getPosition(); //get the simplevector
bridge:setSimpleVector(v, 1.0, 2.0, 3.0);
this doesn't work, no error though. this is my custom class that converts the lua values to floats in the java enviro.
I can however do this
camera:setPosition(bridge:createSimpleVector(1.0, 2.0, 3.0));
this however creates a new SimpleVector
It seems that geting the camera position get's a copy not the the actual vector that camera uses. Am I doing something wrong?
Also if there is no other solution will creating a new SimpleVector per camera update cause a memory problem?