1
This commit is contained in:
parent
e2bda53c7f
commit
83210e4e3c
@ -290,3 +290,8 @@ void Movement::AdjustLastPath(float distance)
|
|||||||
point.distance -= distance;
|
point.distance -= distance;
|
||||||
point.tar_pos.FromGlmVec3(point.src_pos.ToGlmVec3() + point.dir * point.distance);
|
point.tar_pos.FromGlmVec3(point.src_pos.ToGlmVec3() + point.dir * point.distance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Movement::MoveToPos(const glm::vec3& target_pos)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
@ -10,6 +10,7 @@ class Movement
|
|||||||
|
|
||||||
bool UpdatePosition();
|
bool UpdatePosition();
|
||||||
void CalcTargetPos(float distance);
|
void CalcTargetPos(float distance);
|
||||||
|
bool MoveToPos(const glm::vec3& target_pos);
|
||||||
void ClearPath();
|
void ClearPath();
|
||||||
size_t GetPathSize();
|
size_t GetPathSize();
|
||||||
bool IsFindPath() { return is_find_path_; }
|
bool IsFindPath() { return is_find_path_; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user