   ODE:

sphere3 = SphereCreate(0);
matrix1 = MatrixCreate();
MatrixSetValue(matrix1,0,OdeGeomGetRotation(sphere1_geom,0));
MatrixSetValue(matrix1,1,OdeGeomGetRotation(sphere1_geom,4));
MatrixSetValue(matrix1,2,OdeGeomGetRotation(sphere1_geom,8)); 
MatrixSetValue(matrix1,3,0); 
MatrixSetValue(matrix1,4,OdeGeomGetRotation(sphere1_geom,1)); 
MatrixSetValue(matrix1,5,OdeGeomGetRotation(sphere1_geom,5)); 
MatrixSetValue(matrix1,6,OdeGeomGetRotation(sphere1_geom,9)); 
MatrixSetValue(matrix1,7,0); 
MatrixSetValue(matrix1,8,OdeGeomGetRotation(sphere1_geom,2)); 
MatrixSetValue(matrix1,9,OdeGeomGetRotation(sphere1_geom,6)); 
MatrixSetValue(matrix1,10,OdeGeomGetRotation(sphere1_geom,10)); 
MatrixSetValue(matrix1,11,0); 
MatrixSetValue(matrix1,12,OdeGeomGetPosition(sphere1_geom,0)); 
MatrixSetValue(matrix1,13,OdeGeomGetPosition(sphere1_geom,1)); 
MatrixSetValue(matrix1,14,OdeGeomGetPosition(sphere1_geom,2)); 
MatrixSetValue(matrix1,15,1);
ObjectSetLocalMatrix(sphere3,matrix1);
ObjectUseLocalMatrix(sphere3,1);
