summaryrefslogtreecommitdiff
path: root/src/tesseract/objects
diff options
context:
space:
mode:
authorPhillip <pacardon@u.washington.edu>2011-02-14 21:03:33 +0000
committerPhillip <pacardon@u.washington.edu>2011-02-14 21:03:33 +0000
commit43fae2d5b94fafb08891fe6cc8ddeb0e80bbeb79 (patch)
tree69089c08bbaefe56f306e4f541131082c41b3160 /src/tesseract/objects
parentfd208e223b5ecc15be87d13343c1b0d55931029d (diff)
Reduced default scale to 0.2f, any scales LARGER than this will default to 0.2f to prevent object becoming larger than universe.
Diffstat (limited to 'src/tesseract/objects')
-rw-r--r--src/tesseract/objects/Icosahedron.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tesseract/objects/Icosahedron.java b/src/tesseract/objects/Icosahedron.java
index 5a10ff8..32365f3 100644
--- a/src/tesseract/objects/Icosahedron.java
+++ b/src/tesseract/objects/Icosahedron.java
@@ -34,7 +34,7 @@ public class Icosahedron extends PhysicalObject {
/**
* Default Icosohedran Scale.
*/
- private static final float DEFAULT_SCALE = 1;
+ private static final float DEFAULT_SCALE = 0.2f;
/**
* Vertex count in Icosohedran.
@@ -99,7 +99,7 @@ public class Icosahedron extends PhysicalObject {
// Scaling
for (int it = 0; it < coordinates.length; it++) {
- coordinates[it].scale(scale);
+ coordinates[it].scale(Math.min(DEFAULT_SCALE, scale));
}
GeometryArray die = new TriangleArray(((NUM_VERTEX / 2) - 1)