|
I have made a sript which allows u to drive a tank. I used the wheelcolliders and the motortorque, however I have a problem: I don't Know how to rotate it. I only know that if a tank wans to turn left or right he has to turn forward the wheels on the left, while turns back the wheels on the right. I have a problem however: it doesn't turn on his pivot axes, but it goes a little forward and backward. Please, help obviously it's in the fixedupdate function
(comments are locked)
|
|
This code seems ok for me: you apply the common drive torque added to a differential torque to each side according to the steer control.
(comments are locked)
|
