Selection Box


22-03-2013 10:10:44

Hi All,

I tried using the selection box example in Intermediate Tutorial 4 (By Beauty I believe) but when I rotate the camera away from the 0, 0 ,0 point, past about 45 degree, the selection box stop functioning.

Anyone has had this issue or anyone know a fix?

kind regards



25-03-2013 11:55:15

Found the problem

in the function setCorners(float left, float top, float right, float bottom) at the end you have BoundingBox.SetInfinite();

Replace it with BoundingBox = new AxisAlignedBox(-100000.0f * Vector3.UNIT_SCALE, 100000.0f * Vector3.UNIT_SCALE); and it worked

Kind regards