alert(currentObject.position.x);
alert(incrementPositionX);
alert(currentObject.name);
currentObject.position.x += incrementPositionX;
alert(currentObject.position.x);
alert(incrementPositionX);
alert(currentObject.name);
When this Threejs javascript code runs the first 3 alerts are 10 .5 cube1 then after the 1 statement the next 3 alerts are 100.5 .5 cube1
How could the position go from 10 to 100.5 if the increment is .5? This is a sporadic occurrence. after this is run once it works correctly!
Cannot figure this out thanks for the help; Probably something obvious