Hi Sunny Leung,
1.) write your own Behavior class, something like

  public class MyBehavior extends Behavior{

      MyBehavior(Group root, Bounds bounds) {
        this.setSchedulingBounds(bounds);
        BranchGroup branchGroup = new BranchGroup();
        branchGroup.addChild(this);
        root.addChild(branchGroup);
      }

      public void initialize(){
          // set initial wakeup condition
          this.wakeupOn(new WakeupOnBehaviorPost(null, someIntegerValue));
          // set someIntegerValue to your specific value
          // null can be replaced by an specific Behavior Object to send
this value
      }

      // called by Java 3D when appropriate stimulus occures
      public void processStimulus(Enumeration criteria){
        // do what is necessary

        // resetup Behavior
         this.wakeupOn(new WakeupOnBehaviorPost(null, someIntegerValue));
      }
  }

2.) Now you can post

postId(someIntegerValue);


Hope it helps, Marco.

>Hi,
>
>Is there any examples available which demonstrates the use of
>WakeUpOnBehaviorPost(). I am planning to use WakeUpOnBehaviorPost() to
>perform tasks once the WakeUpOnCollisionEntry() is activated?
>
>Thanks
>
>
>Sunny Leung
>
>===========================================================================
>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