#include "pathfindcomponent.h" #include "glm/glm.hpp" #include PathfindComponent::PathfindComponent(std::vector vertices, std::vector triangles): m_vertices(vertices), m_triangles(triangles), m_pathfinder(std::make_unique(vertices, triangles)) { } std::vector PathfindComponent::getPath(const glm::vec3 &A, const glm::vec3 &B){ return m_pathfinder->findPath(A,B); }