How does one go about expanding the Ray method in the Picking tutorial to draw a box and select objects within the selection box?
I know I can click and hold the mouse button down anywhere on the screen (thus storing the point where the mouse is, x1,y1), drag the mouse, then release it on a different location (store the second point of where the mouse is, x2, y2). From there, the method would generate two more points based on the two points to create a rectangle, then it would project the rectangle into the world via the camera (much like in the tutorial where it projected a ray from the mouse's location).
The question is where do I go from here? Do I have a method draw a cuboid (actually a square pyramid on a perspective camera) based on the points? Would the unit's bounding sphere in camera view detect that it is inside this cuboid/square pyramid? Or would I have to draw inside this cuboid/pyramid multiple rays to the bounding sphere's to detect?