I need help error C2664: 'OgreNewt::Body::setPositionOrienta

czechow

10-04-2006 17:52:03

Compiling...
OgreNewtApplication.cpp
.\src\OgreNewtApplication.cpp(30) : error C2664: 'OgreNewt::Body::setPositionOrientation' : cannot convert parameter 1 from 'const Ogre::Quaternion' to 'const Ogre::Vector3 &'
Reason: cannot convert from 'const Ogre::Quaternion' to 'const Ogre::Vector3'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
.\src\OgreNewtApplication.cpp(48) : error C2664: 'OgreNewt::Body::setPositionOrientation' : cannot convert parameter 1 from 'const Ogre::Quaternion' to 'const Ogre::Vector3 &'
Reason: cannot convert from 'const Ogre::Quaternion' to 'const Ogre::Vector3'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
.\src\OgreNewtApplication.cpp(72) : error C2664: 'OgreNewt::Body::setPositionOrientation' : cannot convert parameter 1 from 'const Ogre::Quaternion' to 'const Ogre::Vector3 &'
Reason: cannot convert from 'const Ogre::Quaternion' to 'const Ogre::Vector3'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
.\src\OgreNewtApplication.cpp(95) : error C2664: 'OgreNewt::Body::setPositionOrientation' : cannot convert parameter 1 from 'const Ogre::Quaternion' to 'const Ogre::Vector3 &'
Reason: cannot convert from 'const Ogre::Quaternion' to 'const Ogre::Vector3'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called



????!!!!!!what's wrong !?!?

danharibo

10-04-2006 18:27:00

cannot convert parameter 1 from 'const Ogre::Quaternion' to 'const Ogre::Vector3 &'
Reason: cannot convert from 'const Ogre::Quaternion' to 'const Ogre::Vector3'


well you arenet using a vector3, i am not shure if it uses quanterion but you sohul try

walaber

10-04-2006 23:47:27

I changed the order from a while back... so now you pass the position (Vector3) first, and the orientation (Quaternion) second.

czechow

11-04-2006 17:38:34

I changed the order from a while back... so now you pass the position (Vector3) first, and the orientation (Quaternion) second.
thanks a lot !! it works :)