This commit is contained in:
aozhiwei 2023-01-05 17:19:02 +08:00
parent ea9678a674
commit 70cb3f1eb9

View File

@ -465,6 +465,10 @@ bool MapInstance::Raycast(int layer, const glm::vec3& start, const glm::vec3& en
hit_pos_[2] = epos[2];
hit_result = false;
} else {
if (t < 0.00001f) {
return false;
}
//需要处理spos == epos的情况!!!!
// Hit
dtVlerp(hit_pos_, spos, epos, t);
if (npolys > 0) {