Android Libgdx安卓强制关闭
我想用libgdx创建一个3d android游戏,我刚刚开始…我在xoppa的博客上使用asset manager对lad模型进行了详细介绍…它起到了作用,但当我试图使用以下代码让相机看到模型的中心时:Android Libgdx安卓强制关闭,android,3d,libgdx,Android,3d,Libgdx,我想用libgdx创建一个3d android游戏,我刚刚开始…我在xoppa的博客上使用asset manager对lad模型进行了详细介绍…它起到了作用,但当我试图使用以下代码让相机看到模型的中心时: BoundingBox bound; ..... public vector3 InstanceCentre(ModelInstance instance) { Vector3 centre; instance.calculateBoundingBox(bounds);
BoundingBox bound;
.....
public vector3 InstanceCentre(ModelInstance instance)
{
Vector3 centre;
instance.calculateBoundingBox(bounds);
centre=bounds.getCentre;
return centre;
}
public void render()
{
cam.lookAt(instanceCentre(instance));
.....
}
.......
当我尝试此操作时,它会强制关闭,因此我将其更改为原始版本,而不使用InstanceCenter方法和其他方法,但当我在另一部手机上测试还原版本时,它仍会强制关闭,它可以工作…但无论我在第一部手机上尝试什么,它都无法工作检查日志!应该有一个stacktrace。我现在将添加logcat报告,或者如何从logcatsee中获取错误