![]() |
|
#1
|
|||
|
|||
|
Change position of MainView after COLLISION_EVENT
hi,
I would like to set the MainView to a new position after there was a COLLISION_EVENT. Calling viz.MainView.setPosition(...) leads to a "RuntimeError: maximum recursion depth exceeded". Code:
viz.collision(viz.ON) def onCollision(info): viz.MainView.setPosition([0,0,0]) viz.callback(viz.COLLISION_EVENT,onCollision) Code:
viz.collision(viz.ON) def onCollision(info): viz.MainView.reset(viz.HEAD_POS) viz.callback(viz.COLLISION_EVENT,onCollision) |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Change model alpha and memory leak | hosier | Vizard | 2 | 06-25-2009 11:55 AM |
| writing joystick position to a data file | Saz | Vizard | 3 | 12-17-2008 06:18 AM |
| How can you dynamically change the gain on a tracker-based CaveView? | michaelrepucci | Vizard | 2 | 09-23-2008 08:18 AM |
| Randomly and Continuously Change Avatar's Face Texture | Karla | Vizard | 4 | 08-22-2008 01:14 PM |
| Avatar always returns in initial position | pattie | Vizard | 2 | 08-31-2006 09:15 PM |