2012-01-18 9 views
0

y軸またはz軸を中心に回転する回転補間器を作成するにはどうすればよいですか?私はそれまでのところ、x軸については動作するように管理していましたが、これはデフォルトのようです。他の軸についての回転補間器の使用

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

答えて

0

RotationInterpolatorクラスのJavadocを読んだことはありますか?

/** 
* @deprecated As of Java 3D version 1.3, replaced by 
* <code>TransformInterpolator.setTransformAxis(Transform3D)</code> 
*/ 
public void setAxisOfRotation(Transform3D axisOfRotation) { 
    setTransformAxis(axisOfRotation); 
} 
関連する問題