I'm looping through a model and when I come to a specific TransformGroup I'd like to be able to use an Interpolator to move or rotate the group. Is this possible based on just knowing the TransformGroup?
I'm new to this but I've been trying things like the code below. I think the problem is where I'm adding the Interpolator. Where do I need to add the Interpolator?
TransformGroup g = (TransformGroup) o;
Transform3D yAxis = new Transform3D();
Alpha rotationAlpha = new Alpha(-1, Alpha.INCREASING_ENABLE, 0, 0, 4000, 0, 0, 0, 0, 0);
RotationInterpolator rotator = new RotationInterpolator(rotationAlpha, g, yAxis, 0.0f, (float) Math.PI * 2.0f);