1
This commit is contained in:
parent
8daf51666b
commit
9f37d85d24
@ -2910,10 +2910,18 @@ void Creature::ShotFindPath()
|
|||||||
if (std::abs(GetMoveDir().x) > FLT_EPSILON ||
|
if (std::abs(GetMoveDir().x) > FLT_EPSILON ||
|
||||||
std::abs(GetMoveDir().z) > FLT_EPSILON
|
std::abs(GetMoveDir().z) > FLT_EPSILON
|
||||||
) {
|
) {
|
||||||
#if 0
|
|
||||||
glm::vec3 new_move_dir = GetMoveDir();
|
glm::vec3 new_move_dir = GetMoveDir();
|
||||||
GlmHelper::RotateY(new_move_dir, 90 / 180.0f);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user