i've wrote this code:
TBody chasis=CreateBodyBox(1.2,0.5,4);
EntityType(chasis,2);
PositionEntity(chasis,Vec3(0.0,8.5,0.0));
SetBodyMass(chasis,800);
TVehicle car=CreateVehicle(chasis);
AddVehicleTire(car,Vec3(-0.75,8.0,0),0.3,0.25,70.0,150.0);
This is theoricly how it must work no?
If i put this code it crashes...
Then i tried that (change "car" by "chasis" on AddVehicleTire command:
TBody chasis=CreateBodyBox(1.2,0.5,4);
EntityType(chasis,2);
PositionEntity(chasis,Vec3(0.0,8.5,0.0));
SetBodyMass(chasis,800);
TVehicle car=CreateVehicle(chasis);
AddVehicleTire(chasis,Vec3(-0.75,8.0,0),0.3,0.25,70.0,150.0);
It doesn't crash at startup, but when i apply force by adding torque it crashes. I'm blocked, pls help.
Thanks in advance.
BigB