我可以在Windows 8.1上构建项目。尝试使用Ubuntu时,出现此错误消息
说明资源路径位置类型
对于类型为Vector2f的NavMesh.java / spaceworld / src / jme3tools / navmesh第230行,未定义方法interpolateLocal(Vector2f,Vector2f,float)。
有问题的代码不是我的。
if (d1 < d2){
intersectionPoint.interpolateLocal(wall.getPointA(), wall.getPointB(), distBlend);
newWayPoint = new Vector3f(intersectionPoint.x, 0, intersectionPoint.y);
}else{
intersectionPoint.interpolateLocal(wall.getPointB(), wall.getPointA(), distBlend);
newWayPoint = new Vector3f(intersectionPoint.x, 0, intersectionPoint.y);
}
我已经包含cai-nmgen-0.1.2.jar和jme3 jar,就像我在Windows上所做的一样。为什么不建?
最佳答案
根据Vector3f and interpolate vs. interpolateLocal博客文章,似乎在jme3
库的版本3.0.10和3.1之间对该方法进行了一些更改。
因此,最好检查一下Windows 8.1上使用的版本,并确定较旧的依赖关系(或某些其他程序包传递依赖关系)是否在构建路径中。
还可以在您的Ubuntu上使用版本jme3
库版本3.0.x的代码