| View previous topic :: View next topic |
| Author |
Message |
ellxa
Joined: 05 Jan 2007 Posts: 5
Digg It |
Posted: Sun Feb 11, 2007 2:49 pm Post subject: Wiimote Y-axis Script. |
|
|
In GlovePIE, what is the variable for the wiimote's Y-axis Rotation? Is it relAccel? rawAccel? I'm trying to make a wii slots script so could really use some help.
EDIT: Credit will be given |
|
| Back to top |
|
 |
SwedishFrog Site Admin

Joined: 25 Jan 2007 Posts: 273 Location: New York
Digg It |
Posted: Sun Feb 11, 2007 4:39 pm Post subject: |
|
|
Use wiimote.pitch
Raw values aren't calibrated and shouldn't be used unless you want to reinvent the wheel and calibrate the wiimote yourself.
Other nice calibrated values include wiimote.roll and .gx .gy .gz |
|
| Back to top |
|
 |
Vattu
Joined: 11 Jan 2007 Posts: 96
Digg It |
Posted: Sun Feb 11, 2007 5:27 pm Post subject: |
|
|
| I'm using arccosine and arcsine functions of "raw forces" for a steering script I use for car games. The disadvantage of wiimote.pitch is that it's only accurate if wiimote.roll is close to 0. My script is accurate even for higher angles. Well, it's up to you if you want to accuracy or simplicity first. |
|
| Back to top |
|
 |
ellxa
Joined: 05 Jan 2007 Posts: 5
Digg It |
Posted: Sun Feb 11, 2007 6:12 pm Post subject: |
|
|
| I'm typing about the part where the pointer is going up and down, like flicking the wiimote. Is there a variable for that? Or do I have to use an immitation sensor bar? |
|
| Back to top |
|
 |
SwedishFrog Site Admin

Joined: 25 Jan 2007 Posts: 273 Location: New York
Digg It |
Posted: Sun Feb 11, 2007 11:59 pm Post subject: |
|
|
That depends on whether you're using the acceleometer to move the cursor or the IR dots. What exactly are you trying to do?
BTW The wiimote variables are in the glovepie documentation. Read it, very useful info there. |
|
| Back to top |
|
 |
|