Hi, Basically what you need to do is translate rod to (0,0,0), apply rotation that u need, and translate back to original position. If your math is right and you still haven't expected results i'd say that your model has static transforms removed and translated to vertices coords, so center of your rod in local coords is not gonna be (0,0,0), and hence you will get wrong results with rotations, since your math assume that center of your rod in local coords is (0,0,0) to do proper rotation. You can try use like model bbox or bounding sphere center in local model coords and transform model to that coords instead of (0,0,0) before rotation or re-export your model without flatten static transforms optimization.
Cheers, Sergey ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35618#35618 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org