在 andengine 中的 Vector2Pool.obtain 上出现错误

发布于 2024-12-18 00:09:57 字数 532 浏览 2 评论 0原文

我正在尝试使用 andengine 运行加速度计示例程序 在此处输入链接说明< /a>

但我无法运行程序。我还添加了 andenginephysicalsbox2dextension.jar 。

仅支持此方法 Vector2Pool.obtain();[删除参数以匹配obtain()]

在前:final Vector2重力 = Vector2Pool.obtain(pAccelerometerData .getY(), pAccelerometerData.getX());

并记录错误:找不到方法 org.anddev.andengine.entity.shape.IShape.getVelocityX,从方法引用

I am trying to run sample program for Accelerometer using andengine
enter link description here

But i am not able to run program. I added andenginephysicsbox2dextension.jar also.

Having support this method only Vector2Pool.obtain();[remove arguments to match obtain()]

In ex : final Vector2 gravity = Vector2Pool.obtain(pAccelerometerData
.getY(), pAccelerometerData.getX());

And Log error :Could not find method org.anddev.andengine.entity.shape.IShape.getVelocityX, referenced from method

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

檐上三寸雪 2024-12-25 00:09:57

看来您的 AndEngine 版本很旧。我想你应该再次克隆它。

Seems like your AndEngine version is old. I guess you should clone it again.

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