Hello,
For testing purpose adding this in test6 line 744 (in
if(vue==9 || vue==8) {)
Code:
if (raydium_mouse_click==4 && id>0){
float size;
dVector3 l;
size=raydium_ode_element[id].mesh_scale;
raydium_ode_element_mesh_scale(id,size*0.9);
size=raydium_ode_element[id].mesh_scale;
dGeomBoxGetLengths(raydium_ode_element[id].geom,l);
l[0]*=0.9;
l[1]*=0.9;
l[2]*=0.9;
dGeomBoxSetLengths(raydium_ode_element[id].geom,l[0],l[1],l[2]);
}
if (raydium_mouse_click==5 && id>0){
float size;
dVector3 l;
size=raydium_ode_element[id].mesh_scale;
raydium_ode_element_mesh_scale(id,size*1.1);
size=raydium_ode_element[id].mesh_scale;
dGeomBoxGetLengths(raydium_ode_element[id].geom,l);
l[0]*=1.1;
l[1]*=1.1;
l[2]*=1.1;
dGeomBoxSetLengths(raydium_ode_element[id].geom,l[0],l[1],l[2]);
}
Lauching a box space and using F8 vue, change object size with mouse wheel update size and physics.
Work quite well, what do you think about adding this as
raydium_ode_element_scale ?
Have a nice day.
Ouille.