函数调用缺少参数列表错误
我正在尝试将 bullet 四元数(btQuaternion) 转换为 irrlicht quaternion(irr::core::quaternion) 用于游戏原型设计。
btQuaternion orientation= rigidBody->getOrientation();//now turn bullet quaternion -> irrlicht
finalOrientation= core::quaternion(orientation.getX, orientation.getY, orientation.getZ, orientation.getW);
但是我收到一个错误,我无法弄清楚。
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 抱怨函数调用缺少参数列表,但我找不到解决方案。请帮忙。谢谢
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::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 is complaining about a function call missing an argument list but i cant find a solution. Please help. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设没有一个函数需要任何参数,我相信你需要:
编译器抱怨,因为
getX
、getY
、getZ
和getW< /code> 是函数,调用时函数后面应跟有参数列表。
Assuming none of the functions expect any argument, I believe you need :
The compiler complains because
getX
,getY
,getZ
andgetW
are functions, and functions should be followed by an argument list when invoked.