WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

help in writing scripts

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> GlovePie
View previous topic :: View next topic  
Author Message
monkey3200



Joined: 21 Jan 2007
Posts: 15

Digg It
PostPosted: 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
View user's profile Send private message
errhandler



Joined: 23 Jan 2007
Posts: 10

Digg It
PostPosted: 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
View user's profile Send private message
CarlKenner
Site Admin


Joined: 29 Nov 2006
Posts: 614

Digg It
PostPosted: 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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> GlovePie All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group