Hi Gary!
The viewer-avatar is not visible because it is "sitting behind the camera".
But it should produce some output to the console when "hitting" (running in)
the cube.
Sincerely, yours
Michael Lorenz.
([EMAIL PROTECTED])
<[EMAIL PROTECTED]> wrote:
> Michael,
>
> Maybe I'm confused. I ran 'TestApp' and:
>
> a) The viewer-avatar was not visible.
> b) Even when running through the color cube, got no collisions reported.
>
> I did not uncomment or otherwise change the code, just compiled and ran
with
> no command-line args.
>
> -Gary
>
>
>
>
> Michael Lorenz <[EMAIL PROTECTED]> on 06/07/99 10:10:53 AM
> To: [EMAIL PROTECTED], [EMAIL PROTECTED]
> cc: (bcc: Gary Moss/arl)
> Subject: Re: [java3d] collision detection questions
>
>
>
>
>
> Hi!
>
> I think the ENABLE_COLLISION_REPORTING capability is used only for the
> resulting SceneGraphPath of the collision. Only when this capability is
set
> the corresponding node is included in the path.
> Thanks for your resonse anyway!
>
> To illustrate my problems I attached a test application to this mail.
>
> In this program the viewer-avatar will be represented as a color cube. The
> scene graph contains another color cube which is located about 30 metres
in
> front of the viewer. The color cube is located below a branch-group and
two
> transform-groups. The class CollisionDetector will report a collision with
> the viewer-avatar to the console output window. You can navigate through
the
> scene using the cursor keys (using the KeyNavigatorBehavior class).
>
> What you can see with this program is that if the line
> "tg2.setBoundsAutoCompute(false);" will be uncommented then there will
> happen no more collision. When not included the collision will be
reported.
> Even though capabilities and bounds are set!
>
> If you uncomment the line "s1.setCollidable(false);" then there is no
> collision, too. Right! But having set collision bounds to the
> transform-group tg2 I expected that a collision with this group will
occur.
> But there seem to be no collision detection within groups.
>
> Sincerely, yours
>
> Michael Lorenz.
> ([EMAIL PROTECTED])
>
>
>
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/