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(); }