Michael Bosse' wrote:
dynamic_cast<osg::PositionAttitudeTransform*>(GraphicsActor)->setPosition(osg::Vec3d(
PhyPos.x, PhyPos.y, PhyPos.z));
osg::Quat GraphRot;
GraphRot.set( static_cast<osg::Quat::value_type>( PhyRot.x),
static_cast<osg::Quat::value_type>(PhyRot.y),
static_cast<osg::Quat::value_type>(PhyRot.z),
static_cast<osg::Quat::value_type>(PhyRot.w));
Could it be that Ageia stores quaternions differently from OSG?
I remember an issue with ODE where I had to swizzle the four vector
components from ODE to OSG (and vice versa).
E.g. osg.xyzw = ode.yzwx
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/