/* Obstacles stores a 2D boolean array (obs) representing the XZ plane. The row index is the z-axis, the column index is the x-axis. obs[0][0] is the back left hand corner of the plane, which is the (x,z) point (0-FLOOR_LEN/2, 0-FLOOR_LEN/2).

Obstacles can only be positioned at integer positions due to the use of array subscripts to mark the obstacle positions.*/

privatebooleanobs[][]; // whether a (x,z) has an obstacle//private BoundingSphere obsBounds[][]; // the bounding sphere for obsprivateBoundingBoxobsBounds[][]; // the bounding sphere for obsprivateGroupobsGroup; // group of 3d obstacles shown in world

Dear Andrew Davison: I am sorry i didn't describe the question detailly; Thanks for your detail reply. I want to know is there are any differents between BoundingBox and BoundingSphere in Java 3D api.Now I want to build obstacles whitch is box like (1.0,10.0,2.0),but the BoundingSphere is a sphere. In tour3D, you build the bounds with BoundingSphere.and now i want to build the Bounds with BoundingBox. I know both BoundingSphere and BoundingBox have intersect() method.But this method doesn't take effect after i use BoundingBox instead of BoundingSphere.the TourSprite can go througt of the obstacles. I am the biginner of Java 3D programming.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org