0
\$\begingroup\$

I wanted to make a tank, but there is an issue with it where it always leans a few degrees to the right. tank tilting Even though it's modeled after a tank, it drives like a car, with 4 wheel colliders. When I add the script for motor torque and brakes, it tilts more, but even without it, it's still there. Below is the script that it uses. tank Script

I haven't set up turning because I want to get rid of the lean issue first. The commented-out section is for moving it, when I enable that, even without pressing the controls, it leans much more.

The settings for the wheels are symmetrical, so the front wheels have the same settings, and the rear wheels have the same setting. They're all the same distance from the center, unless the model's mesh was off-center when I made it in blender, but I don't think it is, I was careful to avoid that.

The track also doesn't have a collider, so that shouldn't be the issue, the rigid body that's on the vehicle is very small and rather low to the ground, but it's still centered so I don't think that would cause this lean. I've looked around a lot, but it seems like I'm the only one having this issue, and I really can't figure out what the problem is.

\$\endgroup\$
1

0

You must log in to answer this question.

Browse other questions tagged .