java如何解决构建错误?
我可以在Windows 8.1上构建该项目。当我尝试使用Ubuntu时,我收到了这个错误消息
Description Resource Path Location Type
The method interpolateLocal(Vector2f, Vector2f, float) is undefined for the type Vector2f NavMesh.java /spaceworld/src/jme3tools/navmesh line 230 Java Problem
那令人不快的代码不是我的
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上做的那样,让它工作。为什么它不能建造
# 1 楼答案
根据Vector3f and interpolate vs. interpolateLocal的博客文章,在
jme3
库的3.0.10版和3.1版之间,这种方法似乎有一些突破性的变化因此,你最好检查一下你在Windows 8.1上使用的版本,看看旧版本的依赖项(或其他包传递依赖项)是否在构建路径中
还可以在Ubuntu上试用
jme3
库3.0版的代码。x