Suppose I have a cursor in 3D space and want to perform a click. I want to know what object the cursor is intersecting. Is there a way to ask the world what object is at X,Y,Z location? The checkCollision functions only check collision with the polygons of an object, so it only detects collisions on entering/exiting the object.
The best solution I can come up with is to constantly check collision whenever the cursor moves, and keep track of entering/exiting objects.
However, this solution isn't perfect, and I can think of many ways that this will fail. An obvious example is that the object moves far enough away, without the cursor moving / updating, and next time the cursor moves, it doesn't realize it has left the object.
Is there any way to get the bounding box of the object? I know you can setBoundingBox, and calculationBoundingBox, but there is no getBoundingBox, as far as I can tell.