I’m using navmesh pathfinder to find the path and Waypoint position in look at method. but it rotates wrong.
my code in update method:
if (!npf.isAtGoalWaypoint()) {
npf.goToNextWaypoint();
Vector3f pos = npf.getNextWaypoint().getPosition();
tank.lookAt(Vector3f.UNIT_Y, pos);
tank.setLocalTranslation(pos);
}