我可以在Windows 8.1上构建项目。当尝试使用Ubuntu时,出现此错误消息
说明资源路径位置类型
为类型Vector2f NavMesh.java / spaceworld / src / jme3tools / navmesh第230行Java类型的问题,未定义方法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和interpolate vs. interpolateLocal博客文章,似乎此方法在3.0.10版和3.1版jme3
库之间已发生一些中断更改。
因此,最好检查一下Windows 8.1上使用的版本,并确定较旧的依赖项(或某些其他程序包传递依赖项)是否在构建路径中。
还可以使用版本jme3
库版本3.0.x在Ubuntu上尝试您的代码
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句