diff options
author | Phillip <pacardon@u.washington.edu> | 2011-03-11 01:27:26 +0000 |
---|---|---|
committer | Phillip <pacardon@u.washington.edu> | 2011-03-11 01:27:26 +0000 |
commit | 5d6fe50d4efba759f065de206302101ded8090a6 (patch) | |
tree | 48a5c5e8ee0e4a5375a1040b26fc860890cb7f88 /src/tesseract | |
parent | f7b4a83e1ec361dc3872c0d6ba15371bb7428a73 (diff) |
Diffstat (limited to 'src/tesseract')
-rw-r--r-- | src/tesseract/objects/tank/Body.java | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/tesseract/objects/tank/Body.java b/src/tesseract/objects/tank/Body.java index 73c1962..c07b112 100644 --- a/src/tesseract/objects/tank/Body.java +++ b/src/tesseract/objects/tank/Body.java @@ -25,7 +25,7 @@ public class Body { private static float gunRad = .075f;
private static float gunLength = 2f;
- public static TransformGroup[] makeBody(Color trackColor, Color bodyColor, float theScale) {
+ public static TransformGroup makeBody(Color trackColor, Color bodyColor, float theScale) {
TransformGroup tank = new TransformGroup();
Appearance appearance = new Appearance();
Material material = new Material();
@@ -51,17 +51,19 @@ public class Body { tank.addChild(box);
tank.addChild(leftTrack);
tank.addChild(rightTrack);
- makeTurret(appearance, theScale, turretMove);
- TransformGroup turret = makeTurret(appearance, theScale, turretMove);
- TransformGroup[] tankNturret = {tank, turret};
- return tankNturret;
+ //makeTurret(appearance, theScale, turretMove);
+ //TransformGroup turret = makeTurret(appearance, theScale, turretMove);
+ //TransformGroup[] tankNturret = {tank, turret};
+ return tank;
}
- public static TransformGroup makeTurret(Appearance theApperance, float theScale, Transform3D toMove) {
+ public static TransformGroup makeTurret(Appearance theApperance,
+ float theScale, Transform3D toMove) {
TransformGroup tg = new TransformGroup();
TransformGroup gunTG = new TransformGroup();
Primitive sphere = new Sphere(radius * theScale, theApperance);
- Primitive gun = new Cylinder(gunRad * theScale, gunLength * theScale, theApperance);
+ Primitive gun = new Cylinder(gunRad * theScale,
+ gunLength * theScale, theApperance);
gunTG.addChild(gun);
Transform3D mg = new Transform3D();
mg.rotZ(Math.PI / 2);
|