![]() |
|
#2
|
|||
|
|||
|
Please wrap code with code tags to preserve indentation. Here's some example code that changes the speed based on a collision with an object that is not rendered:
Code:
torus = vizshape.addTorus(pos=[0,1.8,4]) torus.disable(viz.RENDERING) def onCollision(info): if info.object == torus: moveSpeed += 1 viz.callback(viz.COLLISION_EVENT, onCollision) |
| Tags |
| joystick, navigation speed, tasks |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| joystick position | nmohandes | Vizard | 2 | 01-16-2012 11:03 AM |
| [New here] Cave joy navigation | esuna114 | Vizard | 2 | 06-11-2010 05:36 PM |
| changing the gain of a joystick during a program | Saz | Vizard | 4 | 06-25-2009 04:49 AM |
| Joystick Navigation | Vinicius Lima | Vizard | 7 | 10-23-2007 11:42 AM |
| Basic Joystick Navigation Question | Plasma | Vizard | 2 | 01-29-2004 08:08 PM |