This commit is contained in:
aozhiwei 2024-09-09 10:44:12 +08:00
parent e2bda53c7f
commit 83210e4e3c
2 changed files with 6 additions and 0 deletions

View File

@ -290,3 +290,8 @@ void Movement::AdjustLastPath(float distance)
point.distance -= distance;
point.tar_pos.FromGlmVec3(point.src_pos.ToGlmVec3() + point.dir * point.distance);
}
bool Movement::MoveToPos(const glm::vec3& target_pos)
{
return false;
}

View File

@ -10,6 +10,7 @@ class Movement
bool UpdatePosition();
void CalcTargetPos(float distance);
bool MoveToPos(const glm::vec3& target_pos);
void ClearPath();
size_t GetPathSize();
bool IsFindPath() { return is_find_path_; }