函数调用缺少参数列表错误

发布于 2024-10-08 18:36:58 字数 1549 浏览 8 评论 0原文

我正在尝试将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱殇璃 2024-10-15 18:36:58

假设没有一个函数需要任何参数,我相信你需要:

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

编译器抱怨,因为 getXgetYgetZgetW< /code> 是函数,调用时函数后面应跟有参数列表。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文