It's based on real physics but I simplified it a bit. It only works in 2 dimensions, so you cannot go up or something like that.
example code:
Code: Select all
#include <dipiX.h>
#pragma comment(lib, "dipiX.lib")
//declare all things of irrlicht
// to declare a object || (float) not needed but it gives a warning without
dipiX::thrusters car1((float)10, (float)0.05, (float)1.0, (float)10, device,node);
// to do an action
car1.forward(3);
car1.back(3);
car1.left(3);
car1.right(3);
car1.handbrake(); // to stop completely when driving very slowly
//in famous while loop
car1.update();
everything is free to use (if someone can "paint" my plane, I would like the texture
![Very Happy :D](./images/smilies/icon_biggrin.gif)
[download]