From 91aacbf8a85275ca424cbc56a5c4ee45ca211921 Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Wed, 16 Nov 2005 03:36:29 +0000 Subject: [PATCH] Scratch that; go back to using computeRotation. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3762 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/jme/sprite/LineSegmentPath.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/java/com/threerings/jme/sprite/LineSegmentPath.java b/src/java/com/threerings/jme/sprite/LineSegmentPath.java index bec58a7af..d37812cfd 100644 --- a/src/java/com/threerings/jme/sprite/LineSegmentPath.java +++ b/src/java/com/threerings/jme/sprite/LineSegmentPath.java @@ -48,7 +48,6 @@ public class LineSegmentPath extends Path _orient = orient; _points = points; _durations = durations; - PathUtil.computeRotation(up, orient, Vector3f.UNIT_X, _prerot); updateRotation(); } @@ -90,8 +89,7 @@ public class LineSegmentPath extends Path protected void updateRotation () { _points[_current+1].subtract(_points[_current], _temp); - PathUtil.computeAxisRotation(_up, _temp, _rotate); - _rotate.multLocal(_prerot); + PathUtil.computeRotation(_up, _orient, _temp, _rotate); _sprite.getLocalRotation().set(_rotate); } @@ -101,6 +99,5 @@ public class LineSegmentPath extends Path protected float _accum; protected int _current; protected Vector3f _temp = new Vector3f(0, 0, 0); - protected Quaternion _prerot = new Quaternion(), - _rotate = new Quaternion(); + protected Quaternion _rotate = new Quaternion(); }