I'm creating a Vehicle this way:
float front_dir[3] = {0,1,0};
float up_dir[3] = {0,0,1};
float FL_tirepos[3] = {0.827,-1.345,0.42};
float FR_tirepos[3] = {-0.827,-1.345,0.42};
float RL_tirepos[3] = {0.827,1.345,0.42};
float RR_tirepos[3] = {-0.827,-1.345,0.42};
vehiclejoint = CreateCustomMultiBodyVehicle(&front_dir, &up_dir, carBody);
This works without problems, the body falls down. But, if I try to add tires, the vehicle-tires are not in right position, vehicle-body have a 1.0 metre distance from the vehicle-tires, and I driver the car, the tire's state is right, can spin, but when I put the vehicle in the air, the vehicle-body disappears.
CustomMultiBodyVehicleAddTire( rvehiclejoint , this, &FL_tirepos[0], 35.0f, 0.4f, 0.3f,
0.4, 120.0f, 10.0f
....
I have tried a lot , found the "vehiclejoint = CreateCustomMultiBodyVehicle(&front_dir, &up_dir, truckbody)" line may be a bug. when I uses below the way, the vehicle-tires are right position and the vehicle can run, but can't drive.
float front_dir[3] = {0,0,-1};
float up_dir[3] = {0,1,0};
vehiclejoint = CreateCustomMultiBodyVehicle(&front_dir, &up_dir, truckbody);