This commit is contained in:
aozhiwei 2023-03-09 15:07:07 +08:00
parent 1be6e492c4
commit 6a992aa936

View File

@ -2924,6 +2924,10 @@ void Creature::ShortFindPath()
bool hit_result = false;
bool ret = room->map_instance->Raycast(start, end, hit_point, hit_result);
if (ret) {
new_point = hit_point;
room->map_instance->Scale(new_point);
//room->map_instance->Scale(pre_point);
//distance = GlmHelper::Norm(pre_point - new_point);
return true;
} else {
return false;