I needed to make a tank, however there is a matter with it the place it all the time leans a number of levels to the fitting.
Though it is modeled after a tank, it drives like a automobile, with 4 wheel colliders. After I add the script for motor torque and brakes, it tilts extra, however even with out it, it is nonetheless there. Beneath is the script that it makes use of.
I have never arrange turning as a result of I need to eliminate the lean concern first. The commented-out part is for shifting it, once I allow that, even with out urgent the controls, it leans far more.
The settings for the wheels are symmetrical, so the entrance wheels have the identical settings, and the rear wheels have the identical setting. They’re all the identical distance from the middle, except the mannequin’s mesh was off-center once I made it in blender, however I do not assume it’s, I used to be cautious to keep away from that.
The observe additionally would not have a collider, in order that should not be the problem, the inflexible physique that is on the car may be very small and relatively low to the bottom, but it surely’s nonetheless centered so I do not assume that will trigger this lean. I’ve regarded round lots, but it surely looks as if I am the one one having this concern, and I actually cannot determine what the issue is.