This commit is contained in:
aozhiwei 2023-03-06 21:46:18 +08:00
parent 8daf51666b
commit 9f37d85d24

View File

@ -2910,10 +2910,18 @@ void Creature::ShotFindPath()
if (std::abs(GetMoveDir().x) > FLT_EPSILON ||
std::abs(GetMoveDir().z) > FLT_EPSILON
) {
#if 0
glm::vec3 new_move_dir = GetMoveDir();
GlmHelper::RotateY(new_move_dir, 90 / 180.0f);
room->map_instance->Raycast();
#endif
{
glm::vec3 start;
glm::vec3 end;
glm::vec3 hit_point;
bool hit_result;
room->map_instance->Scale(start);
room->map_instance->Scale(end);
room->map_instance->Raycast(start, end, hit_point, hit_result);
}
}
}