From 0633c0c5bce787325a5fcc282111b809b53b141a Mon Sep 17 00:00:00 2001 From: pspeed42 Date: Sun, 27 Jul 2014 18:31:44 -0400 Subject: [PATCH] Fixed an accidental sharing of temp vars vects that turned out to matter. --- jme3-core/src/main/java/com/jme3/bounding/BoundingSphere.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/bounding/BoundingSphere.java b/jme3-core/src/main/java/com/jme3/bounding/BoundingSphere.java index 390d568b7..3cc2888c5 100644 --- a/jme3-core/src/main/java/com/jme3/bounding/BoundingSphere.java +++ b/jme3-core/src/main/java/com/jme3/bounding/BoundingSphere.java @@ -888,7 +888,7 @@ public class BoundingSphere extends BoundingVolume { t = -edge.dot(base) / edge.dot(edge); if( t >= 0 && t <= 1 ) { - Vector3f Q = base.add(edge.mult(t, tvars.vect7), tvars.vect8); + Vector3f Q = base.add(edge.mult(t, tvars.vect7), tvars.vect9); float distSq = Q.dot(Q); // distance squared to origin if( distSq < nearestDist ) { nearestPt = Q; @@ -903,7 +903,7 @@ public class BoundingSphere extends BoundingVolume { t = -edge.dot(base) / edge.dot(edge); if( t >= 0 && t <= 1 ) { - Vector3f Q = base.add(edge.mult(t, tvars.vect7), tvars.vect8); + Vector3f Q = base.add(edge.mult(t, tvars.vect7), tvars.vect10); float distSq = Q.dot(Q); // distance squared to origin if( distSq < nearestDist ) { nearestPt = Q;