Использование интерполятора вращения относительно других осей

Как я могу сделать интерполятор вращения, который вращается вокруг оси y или z? До сих пор мне удалось заставить его работать только с осью x, которая, кажется, используется по умолчанию.

RotationInterpolator interpolator = new RotationInterpolator(rotationAlpha, tg, new Transform3D(), 0.0f, (float)(Math.PI/2.0));

person user1150173    schedule 18.01.2012    source источник


Ответы (1)


Вы читали Javadoc класса RotationInterpolator?

/**
 * @deprecated As of Java 3D version 1.3, replaced by
 * <code>TransformInterpolator.setTransformAxis(Transform3D)</code>
 */
 public void setAxisOfRotation(Transform3D axisOfRotation) {
    setTransformAxis(axisOfRotation);
}
person Karsten Müller    schedule 27.06.2012