Hi Siu,

   Thanks for your test program. Looks like it is a timing
bug.  We are able to reproduce under windows and
bug 4635636 is filed for investigation.

- Kelvin
-------------
Java 3D Team
Sun Microsystems Inc.

>Delivered-To: [EMAIL PROTECTED]
>Delivered-To: [EMAIL PROTECTED]
>Date: Thu, 7 Feb 2002 03:43:42 -0700
>From: SUBSCRIBE JAVA3D-INTEREST clsiu <[EMAIL PROTECTED]>
>Subject: [JAVA3D] Urgent...Collision
>To: [EMAIL PROTECTED]
>
>Dear All,
>  I am now writing my program on Java3D and have encountered a problem.In fact
I am only a newbie and hope that ppl there can kindly give me a helping hand.
>  I try to use a keyboard behavior so that when the user press the key button,
the viewplatform can move.  And I try to add a shape3D under the transform group
of the viewplatform so the the shap3D can move together with the viewplatform.
However, when I want to handle the collision of this shape3D with other shape3D
in my program,  it seems there exist some exception.
>
>java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
>        at java.util.ArrayList.RangeCheck(ArrayList.java:491)
>        at java.util.ArrayList.get(ArrayList.java:307)
>        at
javax.media.j3d.Shape3DRetained.getMirrorShape(Shape3DRetained.java:2
>034)
>        at
javax.media.j3d.WakeupOnCollisionEntry.addBehaviorCondition(WakeupOnC
>ollisionEntry.java:290)
>        at javax.media.j3d.WakeupCriterion.buildTree(WakeupCriterion.java:64)
>        at
javax.media.j3d.BehaviorStructure.activateBehaviors(BehaviorStructure
>.java:255)
>        at
javax.media.j3d.BehaviorStructure.processMessages(BehaviorStructure.j
>ava:178)
>        at
javax.media.j3d.StructureUpdateThread.doWork(StructureUpdateThread.ja
>va:83)
>        at javax.media.j3d.J3dThread.run(J3dThread.java:256)
>
>I try to add my collision detection class with a shape3D on the virtual
universe. And the behavior is added under the transform group of the
shape3D.......
>
>Can anyone help?I will be appreciate of anyone can help on my project...
>
>Siu
>
>===========================================================================
>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