List of usage examples for com.badlogic.gdx.ai.pfa.indexed IndexedAStarPathFinder IndexedAStarPathFinder
public IndexedAStarPathFinder(IndexedGraph<N> graph)
From source file:com.mygdx.game.pathfinding.NavMesh.java
License:Apache License
public NavMesh(Model model) { btTriangleIndexVertexArray vertexArray = new btTriangleIndexVertexArray(model.meshParts); collisionShape = new btBvhTriangleMeshShape(vertexArray, true); raycastCallback = new NavMeshRaycastCallback(navMeshRayFrom, navMeshRayTo); raycastCallback.setFlags(btTriangleRaycastCallback.EFlags.kF_FilterBackfaces); graph = new NavMeshGraph(model); pathFinder = new IndexedAStarPathFinder<Triangle>(graph); heuristic = new NavMeshHeuristic(); }