Detect Object within a Space Volume?

I was wondering how you guys do to detect object within a Space volume (like a sphere or a cone …).

Actually i do spawn an invisible cone/sphere and detect event from collision searcher on it , but it looks a bit crude for the Panda engine so maybe there is better way

Within a sphere, it’s easy–you just create a CollisionSphere that corresponds to the volume you want to detect, and keep track of the “enter” and “exit” events. You also get an “again” event each frame an object remains within the sphere.

Since we don’t have a surface like a CollisionCone, you have to model this kind of surface out of polygons, and then it’s a little more clumsy, but the same principle applies.

David