* Fixed rather silly bounding box computation bug. Thanks to @raistm.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9733 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Sha..rd 13 years ago
parent a0d0b0922f
commit f9e99ab956
  1. 9
      engine/src/core/com/jme3/bounding/BoundingBox.java

@ -239,19 +239,22 @@ public class BoundingBox extends BoundingVolume {
if (vars.vect1.x < minX) {
minX = vars.vect1.x;
} else if (vars.vect1.x > maxX) {
}
if (vars.vect1.x > maxX) {
maxX = vars.vect1.x;
}
if (vars.vect1.y < minY) {
minY = vars.vect1.y;
} else if (vars.vect1.y > maxY) {
}
if (vars.vect1.y > maxY) {
maxY = vars.vect1.y;
}
if (vars.vect1.z < minZ) {
minZ = vars.vect1.z;
} else if (vars.vect1.z > maxZ) {
}
if (vars.vect1.z > maxZ) {
maxZ = vars.vect1.z;
}
}

Loading…
Cancel
Save