How do I create a acar game using physics library

How do I create a car game with exact movement like in a reak car using three js. With using rapier.

Anyone help me to do that

On this when I enter the example

When ever I start the moving car it going downward have you seen that problem

Car go through ground if left page few seconds

On this code they use rapierphysics in they on this physics.addMesh( mesh, 10, 0.8 ); // addMesh places the RigidBody in the mesh.userData.physics object
chassis = mesh.userData.physics.body;

On this the chasis is giving undefined

Because the mesh.userdata is a empty object.

How do I solve it

Can yiu share the code as you done

I dont know how to do this. I just know about link to example.