aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-core/src/main/java
diff options
context:
space:
mode:
authorJulien Gouesse <[email protected]>2013-03-09 10:10:23 +0100
committerJulien Gouesse <[email protected]>2013-03-09 10:10:23 +0100
commitb69b2488926f86e98b3bf6045c716f9e5f668e78 (patch)
treedf562679dbbcdc69ed74a0655ef76bb31e85f6c8 /ardor3d-core/src/main/java
parent59a56df1e89076577753e9484e5c2bfb2a5115cd (diff)
parentc81013c8f8bec5588be7e762a254c509286cbb46 (diff)
Merge branch 'master' of git://github.com/Renanse/Ardor3D
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 {