I have figured out the problem, but I have absolutely NO idea why this is happening.
So basically, it's something to do with my box collider, I disabled my box collider and it went through the ground but was not moving to the right. Then I tried fiddling around with the box collider making it smaller or bigger and stuff, still the same problem.
Then I tried using a mesh collider, same problem. Finally I tried using a capsule collider on the z-axis and it went straight. The only problem is that my tank isn't exactly a capsule shape. Does anyone have any idea why this is happening? I would really like to fix this problem. Also it worked with a sphere collider, but that is even a more irregular shape for the tank.
↧