Picker Problem

Hello,

A friend and myself wanted to make an mmorpg. Yea! :smiley:
So I’m gong through any tutorials i can find. Right now I am going through the BVW Scripting Tutorials. I am at the part where they want you to use the Picker module to make things easier. However it is giving me:

File “/home/nmcbride/Desktop/panda3dtest/Picker.py”, line 15, in init
self.cNode.setCollideGeom(1)
AttributeError: ‘libpanda.CollisionNode’ object has no attribute ‘setCollideGeom’

Here is the class viewer for the module:
etc.cmu.edu/bvw/scripting/ep … odule.html

And here is the module itself:
pastebin.com/m630b4168

Any help would be appreciated,
nomb

This tutorial must be many years out-of-date. There hasn’t been a setCollideGeom() method for a very long time. The nearest equivalent in modern Panda would probably be:

 self.cNode.setFromCollideMask(GeomNode.getDefaultCollideMask())

David

Hmm, thats a shame.
That tutorial was quite good. I went through all the tutorials in the manual.
Any idea where there are others that are just as good for a beginner?

Thanks,
nomb

Try making my suggested change. It’s possible the rest of the tutorial will still be useful. Panda’s interface hasn’t changed that much over the years.

David

I had to change a few things but that made it work! :smiley:
Thanks very much.

nomb