am trying to convert a bullet quaternion(btQuaternion) to an irrlicht quaternion(irr::core::quaternion) for a game am prototyping.
btQuaternion orientation= rigidBody->getOrientation();//now turn bullet quaternion -> irrlicht
finalOrientation= core::quaternion(orientation.getX, orientation.getY, orientation.getZ, orientation.getW);
However am getting an error i cant figure out.
Error 1 error C3867: 'btQuadWord::getX': function call missing argument list; use '&btQuadWord::getX' to create a pointer to member c:\users\matia\documents\visual studio 2008\projects\bulletimplant\bulletimplant\bulletimplant.cpp 86
Error 2 error C3867: 'btQuadWord::ge开发者_如何转开发tY': function call missing argument list; use '&btQuadWord::getY' to create a pointer to member c:\users\matia\documents\visual studio 2008\projects\bulletimplant\bulletimplant\bulletimplant.cpp 86
Error 3 error C3867: 'btQuadWord::getZ': function call missing argument list; use '&btQuadWord::getZ' to create a pointer to member c:\users\matia\documents\visual studio 2008\projects\bulletimplant\bulletimplant\bulletimplant.cpp 86
Error 4 error C3867: 'btQuaternion::getW': function call missing argument list; use '&btQuaternion::getW' to create a pointer to member c:\users\matia\documents\visual studio 2008\projects\bulletimplant\bulletimplant\bulletimplant.cpp 86
visual studio is complaining about a function call missing an argument list but i cant find a solution. Please help. Thanks
Assuming none of the functions expect any argument, I believe you need :
finalOrientation= core::quaternion(orientation.getX(), orientation.getY(), orientation.getZ(), orientation.getW());
The compiler complains because getX
, getY
, getZ
and getW
are functions, and functions should be followed by an argument list when invoked.
精彩评论