This commit is contained in:
aozhiwei 2022-12-14 18:32:01 +08:00
parent ec5ae7f997
commit d820668b49

View File

@ -380,10 +380,8 @@ int MapInstance::Raycast(int layer, const glm::vec3& start, const glm::vec3& end
}
float t = 0;
memset(hit_normal_, 0, sizeof(hit_normal_));
int npolys;
memset(hit_normal_, 0, sizeof(hit_normal_));
navmesh_query_->raycast(startRef, spos, epos, &filter, &t, hit_normal_, polys_, &npolys, MAX_POLYS);
if (t > 1) {