Hi,
just a beginners question, I think. But: How to add a BoundingBox?
Ok, thats my idea:
I create a rectangle
Rectangle rec = new Rectangle(0, 0, 0, 1.0f, 1.5f, 1.0f, false, true, false, 1.0f);
and add a BoundingBox (instead of the default BoundingSphere)
rec.setBounds(new BoundingBox(new Point3f(-0.5f, -0.75f, -0.5f), new Point3f(.5f, .75f, .5f)));
but the internal source of the Node-object looks like this:
public final void setBounds(Bounds bounds) {
this.setBoundsDirtyUpward();
this.bounds.set(bounds);
}
“this.bounds” is already instantiated with a BoundingSphere (by Node’s contructor), so how to set a BoundingBox?
Thanks for help,
octane
