Two Wheeled Car
Playing with vectors, motion and gravity
This page is an advance over earlier experiments (e.g. bikeJump_wheels.htm) in that I am now incorporating the physics engine Matter.js to handle collisions, forces, acceleration, etc. I got a single wheel working well--rotating and moving over a jump and rough terrain.Now I will start making some kind of bicycle. At first, I will simply have two wheels next to each other, as I did in my last page before Matter.js. Then I will tie them together, using constraints. Then I will look at revolute constraints, where the wheels are tied to some kind of frame or car body. At some point I will try to draw a bicycle frame. Then put a rider on it (just a sack of potatoes rider, at least at first). This particular page features a red car with two rolling wheels attached. Noticing some problems with "tunneling" when speeds are high--Matter.js does not seem to have continuous collision detection yet...