problem with prismatic joints in a car

I'm trying to do a car for a sidescrolling videogame (so 2 wheels). I read the tutorials from iforce2d on revolute and prismatic joints. I thought about making it simple, so I put a revolute joint between each wheel and two bodies (respectively) that don't even have fixture, and then a vertical prismatic joint between the chassis of the car and both bodies. Now the problem is that, if the car goes on a hill it keeps being completely horizontal, and running on only one wheel because of it. After seeing this I guess this could be the expected behavoir (or less likely it could be a bug in my code). Anyways, what options (always trying to keep it simple, because I'm starting with box2d and I want to understand everything in my code) do I have to make it work?
I saw the problem. Putting a fixture on the body that has the joints attached makes it work. I don't know why it needs a fixture but it does.
Without a fixture, the body has no mass, so the engine cannot calculate the rotational inertia.
In this case a default rotational inertia value of infinity is used, so the body becomes a fixed rotation body.

Original thread: https://box2d.org/forum/viewtopic.php?t=8858