Hi everyone,

I'm having a bit of trouble with collision detection.  I have a very simple
scene that consists of only two objects -- a Sphere and a ColorCube.  I've
set up a collision detection behavior, attached to the cube (using
wakeupOnCollisionEntry).  This works....when the two objects come into
contact the behavior is triggered.

Eventually, my application will contain a number of spheres, so I'd like to
be able to identify which sphere the ColorCube collided with.  For now, as I
mentioned above, I have only one sphere.  When the behavior is triggered, I
use the wakeupOnCollisionEntry method getTriggeringPath() to retrieve the
path to what I would *assume* is the either the ColorCube or the Sphere
(since these are the only two objects that exist).  I then call the
getObject() method of SceneGraphPath to grab and examine the leaf at the end
of the path.  Here is where my problem occurs:  the leaf at the end of the
path is a Shape3D object....but it's not the ColorCube or the Sphere.

Does anyone know what might be happening?  I'm just not sure what the
Shape3D corresponds to?  Is it possible that it's one of the faces of the
ColorCube?  Or something else?

Also, perhaps my procedure isn't the best way to determine which objects are
involved in a collision?

Thanks very much.

> Jonathan Kelly
>
>

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