Hi, i have the problem that when i move my modell that must fly behind the camera, the modell( or the camera ) don't fit any more. They offset any time i press the move-button. Here the code:
action player()
{
while (1)
{
camera.pan -= mouse_force.x * 1.5;
camera.tilt += mouse_force.y * 1.5;
camera.x = my.x;
camera.y = my.y;
camera.z = my.z;
my.pan = camera.pan;
my.tilt = camera.tilt;
if (key_w) c_move (my, vector(15*time_step, 0, 0), nullvector, GLIDE);
if (key_s) c_move (my, vector(-15*time_step, 0, 0), nullvector, GLIDE);
wait (1);
}
}
That code is an action for the playermodell. I hope you understand the problem, when not try the code out