I am trying to make a Tank Battle game like Pocket Tanks using Pygame and Pymunk in Python. I have a Dynamic body which is the Tank and a Static Body which is the ground. Everything works fine until after a while, the Tank move left on its own and sinks in to the Ground Static body and keeps bouncing up and down while "no-cliping" through the ground.
All my code can be found here: https://github.com/MysteryCoder456/PyTanks.io
Here's a video of what happens(Keep in mind that only press the 'D' key once after the Tank lands on the Ground): https://streamable.com/2fuzz
Edit: I'm using Python 3.7.6, Pygame 2.0.0dev6, MacOS 10.15.3. I don't know which version of Pymunk.