Hello,
I try to dynamicaly create objects that should appear in the camera frustum
removing previously created objects that are outside of the frustum
BoundingBox bv = new BoundingBox(some_point, 0.5f,0.5f,0.5f);
int planeState = camera.getPlaneState(); <--- doc says I have to save planestate....
camera.setPlaneState(0);
if(camera.contains(bv)!= Camera.FrustumIntersect.Outside)
{
...
}
else
{
.... <----- code never reaches here
}
camera.setPlaneState(planeState);
so the camera.contains(…) function never returns Camera.FrustumIntersect.Outside
I am not sure I do this right
anyone can give me a hint how to do this ?
[edit: actualy after checking, it returns “outside” but only for a few objects, not for all objects ouside the frustum]
thanks