Formula for controlling the movement of a tank-like vehicle?

前端 未结 10 1722
情话喂你
情话喂你 2021-01-05 18:13

Anyone know the formula used to control the movement of a simple tank-like vehicle?

To \'steer\' it, you need to alter the force applied the left and right \"wheels\

10条回答
  •  伪装坚强ぢ
    2021-01-05 18:26

    Well, keep in mind that you're also talking about duration here. You need to find out the forces taking in to account the speed at which the tank turns at (1, -1).

    I.E., if the tank takes one second to spin 360˚ at (1, -1), and you want to spin 180˚ in one second, (.5, -.5) would do the trick. If you wanted to spin the same amount in half a second, then (1, -1) would work.

    This is all further complicated if you use abs(lrate) != abs(rrate), in which case you'll probably need to break out a pencil!

提交回复
热议问题