| View previous topic :: View next topic |
| Author |
Message |
monkey3200
Joined: 21 Jan 2007 Posts: 15
Digg It |
Posted: Sat Jan 27, 2007 7:45 pm Post subject: help in writing scripts |
|
|
i got the buttons mapped thing down but what i don't get is the motion sensing
can sum1 tell me the variables and what they mean
i already checked the wiki to complicated _________________
 |
|
| Back to top |
|
 |
errhandler
Joined: 23 Jan 2007 Posts: 10
Digg It |
Posted: Sat Jan 27, 2007 8:37 pm Post subject: |
|
|
| Have you read the documentation file that is in the glovepie directory? I find that to be very helpful explaining what variables you have at your disposal and how they work. |
|
| Back to top |
|
 |
CarlKenner Site Admin
Joined: 29 Nov 2006 Posts: 614
Digg It |
Posted: Sun Jan 28, 2007 8:13 am Post subject: |
|
|
Wiimote.Pitch means the angle upwards that the wiimote is pointing, between -90 degrees and 90 degrees.
Wiimote.Roll means the angle that the wiimote is tipped to the right. It is between -180 and 180. +/-180 means upside-down.
Wiimote.RelAccX means how quickly it is accelerating to its right, in metres per second per second. If it is decelerating while moving right, or accelerating while moving left, then it will be negative.
Wiimote.RelAccY means how quickly it is accelerating upwards.
Wiimote.RelAccZ means how quickly it is accelerating downwards.
Note that those accelerations are relative to the Wiimote. So if the Wiimote is on its side, and you swing it vertically, it will be reported as RelAccX.
The Nunchuk has the same values. Wiimote.Nunchuk.Pitch, Wiimote.Nunchuk.Roll, etc. |
|
| Back to top |
|
 |
|