Simple Picker Class

Hey, this was exactly what I needed. I have a question though.

when the code in my application is:

self.mouseClick = Picker(render)

Everything works fine.

However, I don’t want to use the top node of render, my node tree is set up that I have the following node paths:

render/worldCollision
render/playerCollision

I need the player collision geometry that’s slightly in front of the camera to not be picked up by this. None of the following worked:

self.mouseClick = Picker("render/worldCollision")
worldCollision = render.find("worldCollision")
self.mouseClick = Picker(worldCollision)

Even though when I print worldCollision, I get “render/worldCollision”

What would be the proper way to modify this example to work with another node?