Error in the tutorial?

charlie

29-01-2006 14:42:03

I think I found a small mistake in the OgreNewt tutorial in the wiki:
http://www.ogre3d.org/wiki/index.php/Ne ... e_Dynamics

In the line where the position is set the parameters seem to be in the wrong order.
It states:
floorbody->setPositionOrientation( Ogre::Quaternion::IDENTITY, Ogre::Vector3(0,-5,0) );

but I think it should mean:
floorbody->setPositionOrientation( Ogre::Vector3(0,-5,0), Ogre::Quaternion::IDENTITY );

following the definition in the header of OgreNewt_body:
void setPositionOrientation( const Ogre::Vector3& pos, const Ogre::Quaternion& orient );

walaber

29-01-2006 17:33:48

yes that is correct. in the latest version of OgreNewt the parameters were flipped. I will update the binary files.