|
#1
|
|||
|
|||
Within your keyboard callback function get the avatar's position and, for example if viz.KEY_UP is pressed, create a walkTo action where the z value is incremented. Something like this
Code:
pos = avatar.getPosition() if key == viz.KEY_UP: walk_Forward = vizact.walkTo([pos[0], pos[1], pos[2] + 3]) avatar.addAction(walk_Forward) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Has user perception of avatar expressions been tested? | Karla | Vizard | 3 | 10-28-2008 10:32 AM |
Collision of an avatar with a quad | Frank Verberne | Vizard | 8 | 06-04-2008 09:44 AM |
Looking through the eyes of an avatar | Frank Verberne | Vizard | 2 | 04-01-2008 05:52 AM |
avatar neck too short | aa-chris | Vizard | 2 | 10-16-2007 09:28 AM |
Avatars in an array and link/unlink | betancourtb82 | Vizard | 7 | 09-05-2006 04:06 PM |