#ifndef COCHE_H
#define COCHE_H
#define TRACC_DEL 0
#define TRACC_TRS 1
#define TRACC_4x4 2
#define KEYBOARD 0
#define JOYSTICK 1
#define COMPUTER 2
#define NETWORK 3
class Coche
{
dGeomID box[1];
dGeomID sphere[4];
dJointID joint[4];
float length; // chassis length
float width; // chassis width
float height; // chassis height
float radius; // wheel radius
float startz,starty,startx; // starting
float cmass; // chassis mass
float wmass; // wheel mass
float tracc; // wheel mass
float power; // wheel mass
int input;
public:
float x,y,z,xs,ys,zs,vel;
//revoluciones del motor se calculan a partir
//de la velocitat de las ruedas
float rev;
ObjModel chasis;
ObjModel rueda;
dSpaceID car_space;
dBodyID body[5];
float speed,steer,brake;
void create();
void destroy();
void move();
void draw();
};
#endif