I'm not sure if this is the right way to use c_move and joy_force commands to move the car. Is it possible to attach the camera to the car and move them together?
Code:
action my_car()
{
while (1)
{
if (joy_force.y>0)
my.pan -= joy_force.x*time_step;
if (joy_force.y<0)
my.pan += joy_force.x*time_step;
if (joy_force.y>0)
c_move (my, vector(15*time_step, 0, 0), nullvector, GLIDE);
if (joy_force.y<0)
c_move (my, vector(-15*time_step, 0, 0), nullvector, GLIDE);
wait (1);
}
}