I have this object with top down movement behavior, the thing is I set up simulated keys “WASD” for W- goes up A- goes right, and such.
The thing is , I actually need " tank controls" like, W goes forward, S goes backwards and A and D should rotate the tank, any of you have tips on how to achieve this?
Also to make it a bit more realistic and not have it turn when it is not moving at all you should add a condition that when speed (or sum of forces on the tank) is > 5 then do the A and D conditions that Lizard said…
Ok, this works perfect for the tank, but, My tank is compossed of a tank and a turret that roates following the mouse, so, using this code you sent me the turret moves in the direction of the mouse instead of the direction of the tank I’ll see if I can fix it and report.
UPDATE: I fixed it, simply by applaying the force using the angle of the tank, Thank you so much, this makes it perfect!!!