1
This commit is contained in:
parent
ec5ae7f997
commit
d820668b49
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user