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

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

    Here's how I would attack the tank problem.

    The center of the tank will probably be moving by the average speed of the right and left tracks. At the same time, the tank will be rotating clockwise around it's center by ([left track speed] * -[right track speed]) / [width].

    This should give you speed and a direction vector.

    Disclaimer: I have not tested this...

提交回复
热议问题