--- Kelvin Chung <[EMAIL PROTECTED]> wrote: > 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".
Hi Kelvin, Yes it is v1.3 that I am using. Am I right in saying that if an object is loaded in and is translated to say -10, 1, -48, that object still has its own local coordinate system? So if I want to attach a bounding leaf as a bounding sphere I must set the centre of the sphere at 0, 0, 0 or some coordinate near to that. Also, when I tried to load in some files with texture maps, they appeared in the scene as a plain greyish colour. Is this because the loader cannot get at the geometry needed to texture map because of the type of file used, or would it be the NCSA loader that does not support the texture maping? Regards, Jennifer. __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.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".