I’ve copied the example from the following link and tried to run:
panda3d.etc.cmu.edu/wiki/index.php/Event_Example
But error message shown:
base.cTrav.addCollider(sColl[0] , self.collHandEvent)
Type Error: CollisionTraverser::addCollider() argument 1 must be NodePath, not CollisionNode
Can anyone tell me how to debug it?
Thanks
Martin
March 7, 2006, 7:37am
2
Oh thats intresting it seems that the manual is written for Panda 1.0.5
read this to solve the problem.
Hope this helps
Martin
I can run the demo now
Thanks very much
Martin
March 7, 2006, 10:15pm
4
I’ve made a chang in the manual.
def initCollisionSphere( self, obj, show=False):
....
return([b]cNodepath[/b],collSphereStr )
Hope its correct[/b]
[/code]