From 43fae2d5b94fafb08891fe6cc8ddeb0e80bbeb79 Mon Sep 17 00:00:00 2001 From: Phillip Date: Mon, 14 Feb 2011 21:03:33 +0000 Subject: Reduced default scale to 0.2f, any scales LARGER than this will default to 0.2f to prevent object becoming larger than universe. --- src/tesseract/objects/Icosahedron.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tesseract/objects') 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) -- cgit v1.2.3