* BIHTree will exit early if ray limit is lower than the farthest collision point with the model's bound
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9010 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
8d7aed43d1
commit
64d9c60142
@ -415,6 +415,9 @@ public class BIHTree implements CollisionData {
|
|||||||
|
|
||||||
if (r.getLimit() < Float.POSITIVE_INFINITY) {
|
if (r.getLimit() < Float.POSITIVE_INFINITY) {
|
||||||
tMax = Math.min(tMax, r.getLimit());
|
tMax = Math.min(tMax, r.getLimit());
|
||||||
|
if (tMin > tMax){
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// return root.intersectBrute(r, worldMatrix, this, tMin, tMax, results);
|
// return root.intersectBrute(r, worldMatrix, this, tMin, tMax, results);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user