Mouse picking problem


For some reason, picking only works for the models I loaded. When I use simple objects like spheres or quads, the picking doesn't return any result.

Any reason for this to happen?

Thanks in advance

Currently shapes such as Sphere, Box, etc don't set up a default bounding volume (while loading models do). Make sure you set up boundings for primitive shapes:

shape.setModelBounds(new BoundingSphere());