aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-core/src/main/java
diff options
context:
space:
mode:
authorrenanse <[email protected]>2013-02-24 00:01:51 -0600
committerrenanse <[email protected]>2013-02-24 00:01:51 -0600
commit65a89843d360b305ee3c74a46fb564d5dca2389a (patch)
tree03a1833b41bc9f658218d108a92c9b57475a7b0a /ardor3d-core/src/main/java
parent3b8b189f5afa76b86da1a70860bcba504dc62a0f (diff)
removed debug boolean and attempt to reduce object creation in
boundingsphere.
Diffstat (limited to 'ardor3d-core/src/main/java')
-rw-r--r--ardor3d-core/src/main/java/com/ardor3d/bounding/BoundingSphere.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/ardor3d-core/src/main/java/com/ardor3d/bounding/BoundingSphere.java b/ardor3d-core/src/main/java/com/ardor3d/bounding/BoundingSphere.java
index 675a53c..3c7b79a 100644
--- a/ardor3d-core/src/main/java/com/ardor3d/bounding/BoundingSphere.java
+++ b/ardor3d-core/src/main/java/com/ardor3d/bounding/BoundingSphere.java
@@ -83,7 +83,7 @@ public class BoundingSphere extends BoundingVolume {
transform.applyForward(_center, sphere._center);
if (!transform.isRotationMatrix()) {
- final Vector3 scale = new Vector3(1, 1, 1);
+ final Vector3 scale = _compVect3.set(1, 1, 1);
transform.applyForwardVector(scale);
sphere.setRadius(Math.abs(maxAxis(scale) * getRadius()) + radiusEpsilon - 1);
} else {