This commit is contained in:
aozhiwei 2023-03-06 21:57:27 +08:00
parent 9f37d85d24
commit dce947c61f

View File

@ -2913,8 +2913,8 @@ void Creature::ShotFindPath()
glm::vec3 new_move_dir = GetMoveDir();
GlmHelper::RotateY(new_move_dir, 90 / 180.0f);
{
glm::vec3 start;
glm::vec3 end;
glm::vec3 start = GetPos().ToGlmVec3() - GetMoveDir() * -1.0f * 2.0f;
glm::vec3 end = start + new_move_dir * 1.0f;
glm::vec3 hit_point;
bool hit_result;