Hi,
I use vec_for_screen to position several entities for the game interface.
But for some reason the vec_for_screen line in the code below results in that the
entity constantly switches position a bit (as if it is a vibrator lol ). camera constantly changes position.
while(1) {
vec_set(my.x, vector(50, 50, 0)); // x/y test values
my.z = 50; //depth
vec_for_screen(my.x, camera);
vec_set(my.pan, camera.pan);
wait(1);
}
Besides that shaking, the camera itself stands still by the way.
If I comment the line "vec_for_screen(my.x, camera);" out, the problem goes away. But I would like to use vec_for_screen obviously.