Hello everybody
I’ve made an intersection test beetwen object and it works fine. But i have seen that when the object was removed (with node.detachChild(Object o)) i can always see his bounding sphere when i activate drawBounds. is this normal ? how can i remove completely the object (model + bounding volume ?)
Another little question : when you read a .jme file with jmeBinaryReader is it possible to specify to use boundingBox instead of boundingSphere ?
Thanks for help,
Adenthar
It’s something like setProperty(“bounds”,“sphere”); Look at the javadoc of that function for the exact usage.
i look at javadoc and use : jbr.setProperty(“bound”, “box”);
it works fine drawbounds show me now a box. but :
object.getWorldBound().intersects(anotherObject.getWorldBound())
does not work anymore :(, (it always return false)
i’ve just change the setProperty of the reader, what am i doing wrong ?
adenthar
Currently, mixed intersections do not work (never did). It’s on the todo list. Intersections will only work for box vs box, sphere vs sphere, etc
ha i see,
thanks for the answer Mojo
i will use only box then
Adenthar.