![]() |
|
#2
|
|||
|
|||
|
For the second "problem" I found a posible solution:
Code:
if key == 'z': #forward origin.setPosition( (origin.getPosition()[0]+(math.sin(vizmat.DEG_TO_RAD*origin.getEuler()[0])*0.1)), (origin.getPosition()[1]), (origin.getPosition()[2]+(math.cos(vizmat.DEG_TO_RAD*origin.getEuler()[0])*0.1)) ) if key == 'b': #backwards origin.setPosition( (origin.getPosition()[0]-(math.sin(vizmat.DEG_TO_RAD*origin.getEuler()[0])*0.1)), (origin.getPosition()[1]), (origin.getPosition()[2]-(math.cos(vizmat.DEG_TO_RAD*origin.getEuler()[0])*0.1)) ) Do you know a better way? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reading bone movement from animations | Enlil | Vizard | 5 | 08-14-2008 03:29 PM |
| Mouse/Keyboard Movement | joeymax | Vizard | 1 | 04-02-2007 11:43 AM |
| viewpoint movement | spacefarer | Vizard | 4 | 12-02-2004 08:23 AM |
| eye movement | epl | Vizard | 1 | 06-04-2004 01:29 PM |
| movement problems | keastman | Precision Position Tracker (PPT) | 1 | 09-09-2003 12:41 PM |