View Single Post
  #1  
Old 05-20-2009, 05:58 AM
Sjaak Sjaak is offline
Member
 
Join Date: Apr 2009
Posts: 5
Wiimote in 4 sided Cave

Hello,

I want to use the buttons of the Wiimote to travel (no rotation) through a world projected in our Cave.

How can I do that? I don't see an example in the help neither on this forum. There are examples with the keyboard that work in the cave.

#Create another tracker using the keyboard and mouse (arrow keys adjust position, mouse changes orientation)
origintracker = viztracker.KeyboardMouse6DOF()

#Link the keyboard/mouse so that it moves the cave and user around the virtual environment
originlink = viz.link (origintracker, caveorigin)

But the wiimote?

Something like this?

def CaveTravel():
#take the caveorigin and move
# I don't know what to put here


vizact.onsensordown(wiimote,wii.BUTTON_A,CaveTrave l)

thanks
Sjaak
Reply With Quote