[WiiFlash] Wiimote "Z" space & other data
Merrill, Jason
jason.merrill at bankofamerica.com
Tue Nov 20 07:58:13 PST 2007
Nobody? Surely several people here have done this before.
Really, if someone could just explain how to take the Wiimote data and
translate that to moving an object to X and Y (and bonus - scaling or
"Z") locations, that would be great. I've read a lot online about the
Wiimote, but having a hard time wrapping around how to translate that
to, for one example, Flash X and Y coordinates.
Jason Merrill
Bank of America
Learning & Leadership Development for Global Technology & Operations
eTools & Multimedia Research & Development
>>-----Original Message-----
>>From: wiiflash-bounces at osflash.org
>>[mailto:wiiflash-bounces at osflash.org] On Behalf Of Merrill, Jason
>>Sent: Friday, November 16, 2007 10:34 AM
>>To: wiiflash at osflash.org
>>Subject: Re: [WiiFlash] Wiimote "Z" space & other data
>>
>>>>You could have a look at this page (or at least the diagram), it
>>>>helped me to somewhat make sense of the data coming from
>>the Wiimote:
>>>>http://www.wiili.org/index.php/Motion_analysis.
>>
>>Thanks Alex. I read that, there is a lot of useful stuff on
>>there which I am still absorbing, but a lot of it was
>>somewhat greek to me. I was hoping someone could show some
>>Actionscript examples of converting input from the Wiimote
>>into angles, degrees, X,Y, Z changes, etc.
>>
>>For an example of what I mean by a lot of it is greek to me
>>on that page, quote:
>>
>>"A(t) = R(t)(gz+Ar(t))+R(t)Ar(t) where R is the rotation
>>matrix which transforms from the "living room frame" to the
>>local frame of the remote, and At is the actual acceleration
>>of the remote in the "living room frame". The rotation matrix
>>is parameterized by 3 Euler angles, and the remote's linear
>>acceleration has 3 components as well. With 6 dynamical
>>variables, but only 3 observables, our system is underdetermined!"
>>
>>Huh???? I wasn't a math major and I didn't think
>>"underdetermined" was even a word until I wikipedia'ed it.
>>
>>I just want to figure out how to move a sprite/movieClip
>>left, right, up, down, (and in-out scaling based on z-depth
>>movement) on the stage based on Wiimote data. hmmph. Anyone
>>have any examples? I have looked at some of John Grden/'s
>>code on his blog, and that's useful too, but he's also mixing
>>in a lot of other things - like a "plane" object for
>>controlling an object in Papervision3D - so it's hard to pick
>>parts of his code out that would be useful to me.
>>
>>Jason Merrill
>>Bank of America
>>Learning & Leadership Development for Global Technology &
>>Operations eTools & Multimedia Research & Development
>>
>>
>>
>>_______________________________________________
>>WiiFlash mailing list
>>WiiFlash at osflash.org
>>http://osflash.org/mailman/listinfo/wiiflash_osflash.org
>>
More information about the WiiFlash
mailing list