View Single Post
  #5  
Old 09-23-2010, 05:09 AM
kay kay is offline
Member
 
Join Date: Oct 2009
Posts: 10
hi,

i tried to find a reproducible example. The maximum recursion depth error doesn't appear allways. Often everything work smoothly now.

However ... use either the intialPos inside the tunnel and go to the outside and collide with it or use the outside initialPos and collide with the inside of the tunnel in the example below. The error should appear then.

Code:
import viz
viz.go()


ob=viz.add('playground.wrl')
ob.setScale(1.5,1.5,1.5)

#initialPos=[14.,0.75,13.5]  # inside tunnel
initialPos=[6.,0.75,13.5]    # outside tunnel

viz.MainView.setPosition(initialPos) 
viz.MainView.eyeheight(initialPos[1])
viz.collision(viz.ON)                            
viz.MainView.setPosition(initialPos) 

print viz.MainView.getPosition()



def onCollision(info):
    print "collision at ", info.point
    viz.MainView.setPosition(initialPos)
  
viz.callback(viz.COLLISION_EVENT,onCollision)

By the way, here is the full error, maybe this helps to understand what's happening:

Traceback (most recent call last):
File "<string>", line 0, in ?
File "C:\Program Files (x86)\WorldViz\Vizard30/python\viz.py", line 367, in __init__
self.object = _GetNode(data[7])
RuntimeError: maximum recursion depth exceeded
Reply With Quote