From c1691c3d0afd535d78e01e97a1b9ec06d6201e8e Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 29 Jun 2005 22:24:48 +0000 Subject: [PATCH] More path testing to sort out the jitter in the ballistic path at a certain orientation. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3637 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/jme/sprite/PathTest.java | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/tests/src/java/com/threerings/jme/sprite/PathTest.java b/tests/src/java/com/threerings/jme/sprite/PathTest.java index 6cc3a1daf..ee6d0273f 100644 --- a/tests/src/java/com/threerings/jme/sprite/PathTest.java +++ b/tests/src/java/com/threerings/jme/sprite/PathTest.java @@ -54,9 +54,20 @@ public class PathTest extends JmeApp } } + for (int yy = -1; yy <= 1; yy++) { + for (int xx = -1; xx <= 1; xx++) { + if (xx != 0 || yy != 0) { + setup(xx * dist, yy * dist); + } + } + } + } + + protected void setup (float x, float y) + { Box target = new Box("target", new Vector3f(-.1f, -.1f, -.1f), new Vector3f(.1f, .1f, .1f)); - target.setLocalTranslation(new Vector3f(dist, dist, 0)); + target.setLocalTranslation(new Vector3f(x, y, 0)); _geom.attachChild(target); Box box = new Box("box", new Vector3f(-1, -0.5f, -0.25f), @@ -69,8 +80,8 @@ public class PathTest extends JmeApp shot.attachChild(disk); _geom.attachChild(shot); -// testBallistic(shot, target); - testLineSegment(shot); + testBallistic(shot, target); +// testLineSegment(shot); } protected void testBallistic (Sprite shot, Box target)