This commit is contained in:
aozhiwei 2023-05-15 11:33:05 +08:00
parent 0a9b10725a
commit e73f4389e1

View File

@ -1135,8 +1135,8 @@ void MapInstance::AdjustOnLandPoint(glm::vec3& point)
return;
}
glm::vec3 orig;
glm::vec3 dir;
glm::vec3 orig = glm::vec3(point.x, 100.0f, point.z);;
glm::vec3 dir = glm::vec3(0.0f, 1.0f, 0.0f);
const dtPoly* nearest_poly = nullptr;
float nearest_distance = 0.0f;