Some times ago, I released a strange demo of a scripted car simulating physics by script. Now using Tokamak I release another demo, this time with a "true" physics engine. When I say "true", I really mean a "true" simulation. Actually the most common way to create a car simulation is to build a RayCast car, that is an hovercraft contrained by 4 sensors where the wheel and suspension position are calculated by code. In this demo I created a real scripted car with 4 springJoints working as suspension. The movement is really applied as Torque to the wheels, so the car moves in virtue to the friction of the wheels on the ground.
Naturally the limitations are many, because the engine must take an hard work, but the result in a limited environment is quite good.
This version of the RFwithPhysics is quite unstable so expect crashes. If the framerate is too low, there is something wrong, so change driver or graphics mode, or disable stencil shadows.
Screens:
![Image](http://img62.imageshack.us/img62/8260/1gm6.th.jpg)
![Image](http://img87.imageshack.us/img87/3394/2we4.th.jpg)
![Image](http://img119.imageshack.us/img119/6250/7yj5.th.jpg)
![Image](http://img119.imageshack.us/img119/4812/5pv8.th.jpg)
![Image](http://img119.imageshack.us/img119/3130/3uw6.th.jpg)
Download:
RRacer2.exe here:
http://hosted.filefront.com/federicoRF
N.B. feedback is welcome.
![Wink :wink:](./images/smilies/icon_wink.gif)