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 

Roll and Pitch
Goto page Previous  1, 2
 
Post new topic   Reply to topic    WiiLi.org Forum Index -> CWiid
View previous topic :: View next topic  
Author Message
para



Joined: 20 Aug 2007
Posts: 89

Digg It
PostPosted: Wed Jan 30, 2008 4:25 pm    Post subject:

Ethanfel wrote:
humm, i dont know how to say this exatly.

Wiimote can, whem you shake her in X or Y axe speedly , she can make action.

With glovepie, the code is like this :

Code:

var.xRot = Wiimote.RawForceX
var.yRot = Wiimote.RawForceY


if var.yRot >= 100 then v = true else v = false
if var.xRot >= 100 then h = true else h = false


when i shake my wiimote verticaly (y), i obtain the key "v"

i search everywere, i dont find how to make it with cwiid.

You want the gravity forces. So if you shake the wiimote left and right hard enough you may get 2 or 3 g forces on the X-axis. It has nothing to do with rotation... where did xRot come from?

I don't know if CWiid does this, but the wiiuse library does. Check my signature for the link.
_________________
wiiuse C wiimote library - http://wiiuse.net/
Back to top
View user's profile Send private message Visit poster's website
Ethanfel



Joined: 02 Sep 2007
Posts: 6

Digg It
PostPosted: Wed Jan 30, 2008 7:32 pm    Post subject:

thx, very usefull wiiuse Smile

I make it with xwii, perferct Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> CWiid All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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