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:
but I think it should mean:
following the definition in the header of OgreNewt_body:
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 );