Scratch that; go back to using computeRotation.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3762 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2005-11-16 03:36:29 +00:00
parent 696c790585
commit 91aacbf8a8
@@ -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();
}