[osg-users] osgSim::DOFTransform pivot point
Alberto Luaces
aluaces at udc.es
Thu Apr 11 00:53:20 PDT 2019
"Bruce Clay" writes:
> When I walk through the nodes in the
> DOFTransform list I can see that each node has an osg::Transform but
> calling asPositionAttitudeTransform returns NULL as do many of the
> other possible converters.
That is right, because they are not PositionAttitudeTransforms, but
DOFTransform nodes. Those as*() methods do not convert any node into
any other type; instead they are akin to a dynamic_cast.
You have to replace those specific nodes with new —created by you—
PositionAttitudeTransform nodes.
--
Alberto
More information about the osg-users
mailing list