|
public void setNewGoalForPosComponent(Vector3f tPos, PositioningComponent com) {
com.goalPos.set(tPos);
com.path = null;
com.nextWayPoint = null;
Path pa = new Path();
if(Singleton.get().getNavManager().buildNavigationPath(pa, com.position, com.goalPos)){
com.initByWayPoint(pa);
}
}
|