Hey,

        I ran into the same problem with the setBounds() method - that it
seemed to not actually set them.  But if you are just using the bounds for
collision detection the setCollisionBounds() method appears to do what you
want.  For example:

shape.setCollisionBounds(new BoundingBox(new Point3d(-.25, -1, -.5),
                                         new Point3d(.25, 1, .5)));

would actually give you an AABB for shape's collision bounds.  I'm not
sure why the normal setBounds() doesn't seem to work.

Maybe that helps,

        Bobby

__________________
University of Virginia, Computer Science IV
[EMAIL PROTECTED]
http://www.people.virginia.edu/~rwk4d

On Tue, 13 Apr 1999, Michael Wilimsky wrote:

> thanx for the info rajesh...
> 
> do You know how i could get a boundingbox in return for my getBoundsMethod? i
> don�t want a
> cube as Bounding Object for every scenegraph object....
> 
> the problem is, that i can�t override the final getBounds() method....
> 
> poohh... what do You think?
> 
> michy
> 
> Rajesh Gupta wrote:
> 
> > Hi Michael,
> >
> > Don't know about J3D1.1.1, but till 1.1, even the BoundingBox was internally
> > stored as a BoundingSphere. And it is documented, where exactly, I will have
> > to look up.
> > That probably explains your observation.
> >
> > Regards,
> > Rajesh Gupta
> >
> > ----- Original Message -----
> > From: Michael Wilimsky <[EMAIL PROTECTED]>
> > To: Java3d <[EMAIL PROTECTED]>
> > Sent: Tuesday, April 13, 1999 12:09 PM
> > Subject: [java3d] Bounds computing
> >
> > > I need help!
> > >
> > > everytime I call the getBounds()-method of my SceneGraphObjects i get a
> > > BoundingSphere-Object...
> > > even if i set the Bounds as a BoundingBox Object :
> > >
> > > setBounds(new BoundingBox(new Point3d(x1, y1, z1), new Point3d(x2, y2,
> > > z2)))
> > >
> > > but i would rather like to get a BoundingBox...
> > >
> > > what do i have to do ?
> > >
> > > michy
> > >
> > > =====================================================================
> > > To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> > > Java 3D Home Page: http://java.sun.com/products/java-media/3D/
> > >
> 
> �����������������������
> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> Java 3D Home Page: http://java.sun.com/products/java-media/3D/
> 

�����������������������
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to