BoundongSphere fixed a case when intersects was not releasing the tempvars.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10954 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
experimental
rem..om 11 years ago
parent 1fcd9526b2
commit 81b458cc4b
  1. 1
      engine/src/core/com/jme3/bounding/BoundingSphere.java

@ -725,6 +725,7 @@ public class BoundingSphere extends BoundingVolume {
float radiusSquared = getRadius() * getRadius();
float a = diff.dot(diff) - radiusSquared;
if (a <= 0.0) {
vars.release();
// in sphere
return true;
}

Loading…
Cancel
Save