| View previous topic :: View next topic |
| Author |
Message |
echoshatter
Joined: 08 Mar 2007 Posts: 2
Digg It |
Posted: Thu Mar 08, 2007 5:52 am Post subject: Nunchuk Tilt Function |
|
|
Question: Is it possible to use the accelerometer in the Nunchuk yet for tilting? If so, whats the code for it all (aka, can you give me a demonstration)?
Reason I ask is I tried to set the Wiimote up like a flight stick for flying games, but had major issues with it flipping coordinates on me when I pulled it back. I believe the solution to this would be to use the Nunchuk as the flight stick and the Wiimote as other buttons.
So unless anyone out there has come up with a script that uses the Wiimote like a flight stick and it is successful at countering this issue
Now I'm not a programmer, but I've done a fair bit of stuff for webpages; simple things, similar to the logic behind GlovePIE. I should be able to understand most of the stuff. |
|
| Back to top |
|
 |
echoshatter
Joined: 08 Mar 2007 Posts: 2
Digg It |
Posted: Thu Mar 08, 2007 2:09 pm Post subject: |
|
|
Oh ok, I got it... nm
Apparently you just throw "Nunchuk" after Wiimote1 (or 2, or whatever...).
var.x = Wiimote1.Nunchuk.RawForceX + var.trimx
var.y = Wiimote1.Nunchuk.RawForceY + var.trimy
var.z = Wiimote1.Nunchuk.RawForceZ + var.trimz |
|
| Back to top |
|
 |
|