SOLVED Problem with revolute joint

Hello, I have a physics tank game, that have turrets, which spin to mouse pointer. When tank hits the wall, turret goes a little ahead and stops. if I no longer hold the button, tower will return to where it should be. I need the turret to be every time in center of tank. When i add this phy_position_x = tank.phy_position_x; phy_position_y = tank.phy_position_y; to turret step event, it works fine, but when i move tank, turret will move after a while.
My code of the joint create:physics_joint_revolute_create(id,turret,turret.x,turret.y,0,0,0,0,0,0,false);
For moving tank i use physics_apply_force.
Last edited:

with this code :
physics_world_update_speed(room_speed * 2);
from this thread