I think you should use the following codes, and add your created shape
object to the "sbranch" object.  Using detach methods can solve it. Any
further questions, please contact me.

BranchGroup sbranch = new BranchGroup();
sbranch.setCapability(BranchGroup.ALLOW_DETACH);
sbranch.setPickable (false);

if (sbranch!=null)
{
    sbranch.detach();
}

Rgds,

Cheng Chang Dong
http://vlab.ee.nus.edu.sg/~ccd

----- Original Message -----
From: "Brad Urani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 06, 2002 11:45 AM
Subject: [JAVA3D] removing shapes


> How do I remove shapes from the scene graph? Would the
> best way of making bullets be creating shapes, then
> adding them, moving them and removing them when they
> are off the screen?
>
> =====
> 3790 Colorado Ave. G       Mobile: (303)641-8936
> Boulder, CO                eFax:   (305)723-2968
> 80303                      [EMAIL PROTECTED]
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE Valentine eCards with Yahoo! Greetings!
> http://greetings.yahoo.com
>
>
===========================================================================
> 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