在 andengine 中的 Vector2Pool.obtain 上出现错误
我正在尝试使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来您的 AndEngine 版本很旧。我想你应该再次克隆它。
Seems like your AndEngine version is old. I guess you should clone it again.