1
This commit is contained in:
parent
1be6e492c4
commit
6a992aa936
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user