Just a tip. Maybe fit your need.

Matrix3D is used to store rotational component in a Transform3D.
Get a Matrix3D from your transform and store it.
In the next processStimulus runs, compare the new matrix3D values with the
old one value.
If  they are the same there is no rotation.
If they are diferent they rotate, so update your stored matrix3D and do the
desired action for rotation.

Alessandro


----- Original Message -----
From: "Chauveau Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 22, 2003 9:43 PM
Subject: [JAVA3D] how to wake up?


> Hi,
>
>   Can anybody help with my problem? Thanks a lot.
>
>   I draw an arrow pointing from one box to another. When the box moves or
> zooms, I can detect it by using WakeupOnTransformChange(). But how to wake
> up when the boxes rotate?
>
>
>
>         ArrowEvents = new WakeupCriterion[2];
>         ArrowEvents[0] = new WakeupOnTransformChange(tg1);
>        // tg1 is the transform group of one box
>
>         ArrowEvents[1] = new WakeupOnTransformChange(tg2);
>       // tg2 is the transform group of another box
>
>         ArrowCriterion = new WakeupOr(ArrowEvents);
>
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
===========================================================================
> 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".

===========================================================================
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".

Reply via email to