![]() |
#2
|
|||
|
|||
You could modify the updateCar function to use the wiimote buttons to control the car. For example, you could replace:
Code:
#Use y position of joystick to compute forward car movement forwardMovementAmount = viz.elapsed() * MOVE_SPEED * -joyPOS[1] car.setPosition( [ 0, 0, forwardMovementAmount], viz.REL_LOCAL ) Code:
if wiimote.isButtonDown(wii.BUTTON_UP): forwardMovementAmount = viz.elapsed() * MOVE_SPEED car.setPosition( [ 0, 0, forwardMovementAmount], viz.REL_LOCAL ) |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Create Button or Text | Chrissy2009 | Vizard | 1 | 07-15-2009 05:34 PM |
Wiimote in 4 sided Cave | Sjaak | Vizard | 2 | 05-20-2009 01:05 PM |
Mac Mini Sound Server ? | djdesmangles | Vizard | 3 | 05-14-2009 12:44 PM |
wiimote and sensor bar | masaki | Vizard | 1 | 03-06-2008 03:07 PM |
driving simulator | paulpars | Vizard | 1 | 05-12-2006 11:46 AM |