On 09/19/2011 02:55 PM, Paul Martz wrote:

Now I want to create an osgSim::DOFTransform ( 
http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00182.html
 ) to describe this DOF. Unfortunately I do not exactly what I have to do now. 
The DOFTransform neither has a setPosition() nor a setAxis() method.
Do I have to use setPutMatrix()? If yes: How do I create this matrix? Is it 
just M = RotationY(90) * Translation(DOFPosition)?
Do I also need to set the Inverse PutMatrix?

The short answer is yes, you need to use the Put and Inverse Put matrices. The put matrix should translate the origin of the DOF to the local origin and align the axes correctly. The inverse put should do the opposite, that is, it should literally be the inverse of the put matrix.

For the complete explanation, see the OpenFlight spec that Paul mentioned.

--"J"

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to