I don't get it... I have tried with the following code:
H3DRes testRes = h3dAddResource( H3DResTypes::SceneGraph, "models/car/car.scene.xml", 0 ); H3DNode test = h3dAddNodes( H3DRootNode, testRes ); h3dSetNodeTransform( test, 0, 0, 0, 0, 0, 0, 1, 1, 1 ); h3dFindNodes(test, "Cylinder-0", H3DNodeTypes::Mesh); H3DNode tire = h3dGetNodeFindResult(0); h3dSetNodeTransform(tire, 0, 0, 0, 0, 90, 0, 1, 1, 1);
... and then with this code:
H3DRes testRes = h3dAddResource( H3DResTypes::SceneGraph, "models/car/car.scene.xml", 0 ); H3DNode parent = h3dAddGroupNode(H3DRootNode, "modelnode"); H3DNode test = h3dAddNodes( parent, testRes ); h3dSetNodeTransform( test, 0, 0, 0, 0, 0, 0, 1, 1, 1 ); h3dFindNodes(test, "Cylinder-0", H3DNodeTypes::Mesh); H3DNode tire = h3dGetNodeFindResult(0); h3dSetNodeTransform(tire, 0, 0, 0, 0, 90, 0, 1, 1, 1);
But I don't get the correct rotation in local space for the wheel (tire)... Any help here would be highly appreciated.
|