diff options
author | Phillip <pacardon@u.washington.edu> | 2011-03-14 08:11:16 +0000 |
---|---|---|
committer | Phillip <pacardon@u.washington.edu> | 2011-03-14 08:11:16 +0000 |
commit | 3f929048737241331715fbd2ab0db13d8f72b2e1 (patch) | |
tree | 5ed9d149a846816d656b791d27c80d0e23c994c2 /src/tesseract/objects/tank/Body.java | |
parent | e3467fc8846e2d91f127f1750d219e2a7eec1f8e (diff) |
Updated turning code for tank to rotate the shape rather than add/subtract rotational velocity.
Still at a loss on how to accellerate in a given direction :(
Diffstat (limited to 'src/tesseract/objects/tank/Body.java')
-rw-r--r-- | src/tesseract/objects/tank/Body.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tesseract/objects/tank/Body.java b/src/tesseract/objects/tank/Body.java index e67f3c1..bd7e0b0 100644 --- a/src/tesseract/objects/tank/Body.java +++ b/src/tesseract/objects/tank/Body.java @@ -41,6 +41,7 @@ public class Body { turretMove.setTranslation(new Vector3f(0, height * theScale, 0));
makeTurret(turretColor, theScale, turretMove);
barrel.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
+
}
private void makeBody(Color trackColor, Color bodyColor, float theScale) {
@@ -121,7 +122,7 @@ public class Body { return barrel;
}
- public Vector3f[] getFacing() {
- return vectors;
+ public Vector3f getFacing() {
+ return vectors[0];
}
}
|