Jennifer Mc Gann wrote:

Hi there,
I'm having a problem with the execution of a behaviour
based on collision detection. Two objects collide in
my scene and a switch takes place on one object and
writes to a switch for the other object. I have
attached a BoundingLeaf to each object. These bounding
leaves take parameters from two separate bounding
boxes which are quite small so that the objects have
to collide in an exact position before the switches
can take place. The behaviour is executed on collision
entry. However, when I run the scene, the switches
take place straight away which suggests to me that the
application is using the universal application
bounding sphere (which encompasses the entire world).
It would appear that the application is ignoring the
bouning leaves set up for the collision detection.
Could someone please help with this as I've run out of
solutions for this!!! I have attached both the
behaviour file and the main application file if
someone wants to take a look. The application will not
run with these two files but there are too many to
send over email.
Thanks in advance,
Regards,
Jennifer.



Which version of Java3D are you using (the latest one is v1.3).
I use another model for .wrl and replace NCSA model loader
by ObjectFileLoader in your program.

Using v1.3 and v1.2.1_03 the behavior in BottleBehaviourTest
does not trigger. You can test it by adding a print statement
in processStimuus(). I think this is what you expect.
Please note that bounding leaf is affected by the transform above it.

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

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