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

前端 未结 10 1769
情话喂你
情话喂你 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:27

    I'd say you're thinking about it in the wrong way.

    Increasing the difference in speed between the two treads doesn't cause degrees of turn - they, combined with time (distance at different speed) cause degrees of turn.

    The more of a difference in tread speed, the less time needed to achieve X degrees of turn.

    So, in order to come up with a formula, you'll have to make a few assumptions. Either turn at a fixed rate, and use time as your variable for turning X degrees, or set a fixed amount of time to complete a turn, and use the track speed difference as your variable.

提交回复
热议问题