Please as I put gravity in this code, the player this floating, This is the code of the player;
////////////////////////////////////////////
action players_code
{
player = my;
my.invisible = on;
while (1)
{
c_move (my, vector(10 * (key_w - key_s) * time_step, 6 * (key_a - key_d) * time_step, 0), nullvector, glide);
vec_set (camera.x, player.x);
camera.z += 30;
camera.pan -= 5 * mouse_force.x * time_step;
camera.tilt += 3 * mouse_force.y * time_step;
player.pan = camera.pan;
wait (1);
}
}
////////////////////////////////////////////
put the code piece so that the player is fixed in the floor. Thank you!