Gradle + Box2D b2PolygonShape + Java(TM)SE二进制文件

时间:2014-08-03 17:39:57

标签: java eclipse gradle tween

我已经完成了测试gradle项目,只显示了badlogic游戏徽标。问题是当我尝试启动我自己的gradle项目设置时添加了补间jar。这是eclipse控制台中显示的消息:

[sts] -----------------------------------------------------
[sts] Starting Gradle build for the following tasks: 
[sts]      run
[sts] -----------------------------------------------------
Configuration on demand is an incubating feature.
:core:compileJava UP-TO-DATE
:core:processResources UP-TO-DATE
:core:classes UP-TO-DATE
:core:jar UP-TO-DATE
:desktop:compileJava UP-TO-DATE
:desktop:processResources UP-TO-DATE
:desktop:classes UP-TO-DATE
:desktop:run
game dimensions in UWGAME: 272.0, 483.55557

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
AL lib: (EE) alc_cleanup: 1 device not closed
Assertion failed!

Program: C:\Program Files\Java\jdk1.8.0_11\bin\java.exe
File: /var/lib/jenkins/workspace/libgdx/extensions/gdx-box2d/gdx-
box2d/jni/Box2D/Collision/Shapes/b2PolygonShape.cpp, Line 384

Expression: m_count >= 3

BUILD SUCCESSFUL

Total time: 17.454 secs
[sts] -----------------------------------------------------
[sts] Build finished succesfully!
[sts] Time taken: 0 min, 17 sec
[sts] -----------------------------------------------------

这是做什么的:

Java(TM)平台SE Binary已停止工作

任何想法我怎么能解决这个问题?

感谢您考虑这个问题。

安托,

修改

**已解决:当shape = new PolygonShape时,永远不要设置shape.setRadius(float Radius),在这种情况下,shape必须是a = new CircleShape();无论如何.setRadius不应该是Polygonshape对象的方法.. **

2 个答案:

答案 0 :(得分:1)

**已解决:当shape = new PolygonShape时,永远不要设置shape.setRadius(float Radius),在这种情况下,shape必须是a = new CircleShape();无论如何.setRadius不应该是Polygonshape对象的方法.. **

答案 1 :(得分:0)

您应该检查常量中的PPM值。你已经分割了PolygonShape.setAsBox(x / 2 / Coonstant.ppm,y / 2 / Constant.ppm).. ppm值必须为浮点数。