Function call error

I am trying to convert bullet quaternion (btQuaternion) to irrlicht quaternion (irr :: core :: quaternion) to prototype the game.

        btQuaternion orientation= rigidBody->getOrientation();//now turn bullet quaternion -> irrlicht
        finalOrientation= core::quaternion(orientation.getX, orientation.getY, orientation.getZ, orientation.getW);

However, I get an error, I can not understand.

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::getY': 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 complains about a function call, missing argument list, but I cannot find a solution. Please help. Thanks

+3
source share
1 answer

Assuming that none of the functions expects any argument, I think you need:

finalOrientation= core::quaternion(orientation.getX(), orientation.getY(), orientation.getZ(), orientation.getW());

The compiler complains because getX, getY, getZand getWare the functions and the function call must be followed by a list of arguments.

+4

Source: https://habr.com/ru/post/1781977/


All Articles