This commit is contained in:
aozhiwei 2022-12-16 14:24:16 +08:00
parent 5178e7810d
commit edf480f14b

View File

@ -459,7 +459,7 @@ bool MapInstance::Raycast(int layer, const glm::vec3& start, const glm::vec3& en
hit_pos_[1] = epos[1];
hit_pos_[2] = epos[2];
hit_result = false;
} else {
} else {
// Hit
dtVlerp(hit_pos_, spos, epos, t);
if (npolys > 0) {
@ -578,7 +578,6 @@ bool MapInstance::GetPosHeight(const Position& pos, float& out_height)
return false;
}
a8::XPrintf("getPosHeight:%d\n", {startRef});
auto ret = navmesh_query_->getPolyHeight(startRef, nearestPt, &out_height);
#if 0
assert(ret == DT_SUCCESS);