1
This commit is contained in:
parent
ea9678a674
commit
70cb3f1eb9
@ -465,6 +465,10 @@ bool MapInstance::Raycast(int layer, const glm::vec3& start, const glm::vec3& en
|
|||||||
hit_pos_[2] = epos[2];
|
hit_pos_[2] = epos[2];
|
||||||
hit_result = false;
|
hit_result = false;
|
||||||
} else {
|
} else {
|
||||||
|
if (t < 0.00001f) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
//需要处理spos == epos的情况!!!!
|
||||||
// Hit
|
// Hit
|
||||||
dtVlerp(hit_pos_, spos, epos, t);
|
dtVlerp(hit_pos_, spos, epos, t);
|
||||||
if (npolys > 0) {
|
if (npolys > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user