In the meantime i stumbled upon another problem.
I have a flat surface as a ground. I need to put barriers to keep the bolid within the track.
I made two extruded closed curves.
Converted to meshes.
I'm trying to place them and set up correctly.
My code so far:
Code:
b=raydium_ode_object_create("BARRIER");
//b=raydium_ode_object_find("GLOBAL");
//raydium_ode_object_colliding(b,1);
raydium_ode_object_box_add("innerbarrier",b,0.02,RAYDIUM_ODE_AUTODETECT,0,0,RAYDIUM_ODE_STANDARD ,TYPE_BARRIER,"innerbarrier.tri");
raydium_ode_element_material_name("innerbarrier",RAYDIUM_ODE_MATERIAL_HARD);
raydium_ode_element_slip_name("innerbarrier",RAYDIUM_ODE_SLIP_ICE);
raydium_ode_element_move_name_3f("innerbarrier",0.0,0.0,0.0);
raydium_ode_object_move_3f("BARRIER",0.0,0.0,-2.0);
(I introduced TYPE_BARRIER with value 99)
So if i set innerbarrier to STATIC the car goes through.
If i set to STANDARD it falls from the sky and keeps actiong weird.
If i export it together with the ground tri, it has a default friction and bolid's wheels keep climbing on it instead of bumping;
I just want it to act like in real life.