Dear Mr Paul,
I understand the reason you think the error is made by setting up the wrong
variable, but I have check I do throw in the Alpha class and TransformGroup
class.
Also the problem I get is trying to set up a new class that extends
RotationInterpolator and not access it directly. I have tried to use similar
structure by extending Behavior class which work superly.
_____________
MouseNavigatorApp.java:93: RotationInterpolator() is not public in
javax.media.j
3d.RotationInterpolator; cannot be accessed from outside package
objTurn(Alpha alpha, TransformGroup targetTG){
_____________
This is a Constructor of the class that extends RotationInterpolator.
Constructor I used
| |
\/
public class objTurn extends RotationInterpolator{
objTurn(Alpha alpha, TransformGroup targetTG){
this.alpha=alpha;
this.targetTG=targetTG;
}
}
The reason I do this is because I want to use the method inside the behavior
classes
_____________
public void processStimulus(Enumeration criteria){
public void initialize(){
_____________
With this method I can set the animation to start at specify wakeCreiteria.
I have try to use your approach by setting up the RotationInterporlator
directly like this.
____________
RotationInterpolator rotInt = new RotationInterpolator (alpha,
objSpin);
rotInt.setSchedulingBounds(new BoundingSphere());
objRoot.addChild(rotInt);
____________
But, this will not allow me to change the Process stimulus and wake up
creterial. which is n't what I want.
I understand my approach is not the only approach to do trigger and control
animation, if you have any other solution I would love to hear it.
Thank you for helping me.
yours sincerely
Raymond Lau
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".