{"id":298,"date":"2007-01-14T23:52:46","date_gmt":"2007-01-14T22:52:46","guid":{"rendered":"http:\/\/cb.nowan.net\/blog\/2007\/01\/14\/wiirtools\/"},"modified":"2007-01-14T23:55:16","modified_gmt":"2007-01-14T22:55:16","slug":"wiirtools","status":"publish","type":"post","link":"http:\/\/cb.nowan.net\/blog\/2007\/01\/14\/wiirtools\/","title":{"rendered":"Wiirtools"},"content":{"rendered":"<p>At last, the use of a Wiimote inside Virtools! You don&#8217;t even need a specific BB, only read values from a virtual joystick or emulate keystrokes.<br \/>\nThanks to <a href=\"http:\/\/carl.kenner.googlepages.com\/\">Carl Kenner<\/a> for <a href=\"http:\/\/carl.kenner.googlepages.com\/glovepie\">GlovePie<\/a> and <font size=\"-1\">Deon van der Westhuysen for <a href=\"http:\/\/www.geocities.com\/deonvdw\/PPJoy.htm\">PPJoy<\/a>.<\/font><\/p>\n<p>(Sorry for the darkness of videos..)<\/p>\n[youtube]http:\/\/youtube.com\/watch?v=DCu8k5prjrk[\/youtube]\n[youtube]http:\/\/youtube.com\/watch?v=kqxQqfMHUTU[\/youtube]\n<p>GlovePie allows you to emulate keystrokes, mouse movement and joystick movements depending on other devices input or events. For example if your Wiimote X acceleration vector is more than a certain threshold, you can script GlovePie so that it simulates a keystroke on the Left key. If your game uses the Left key, using the Wiimote will have the same behavior. Or move the mouse left &#8230;<br \/>\nPPJoy allows the creation of virtual joysticks in Windows. You then script Glove Pie to map the Wiimote datas to this virtual joystick, effectively enabling the Wiimote in any joystick-based game. Or in Virtools, simply use a Joystick Waiter.<\/p>\n<p>The car demo shows the use of GlovePie to emulate keystrokes. The tilt and roll demo is using the values of the accelerometers to compute the tilt and roll angle of the Wiimote.<br \/>\nGetting the yaw (heading orientation) needs the sensor bar. The translations are also kind of hard to extract, since you don&#8217;t know if an acceleration is due to a rotation or a translation (see <a href=\"http:\/\/www.wiili.org\/index.php\/Motion_analysis\">Wiimote Motion Analysis<\/a> for more on this). But David said he&#8217;ll give it a try, so let&#8217;s wait =)<\/p>\n<p>Here&#8217;s the <a href=\"http:\/\/cb.nowan.net\/blog\/data\/Wiirtools-PhysicsCar.PIE\">Pie script<\/a> for the Car composition (which you can find in your VRPack\/Samples\/Tests folder), the <a href=\"http:\/\/cb.nowan.net\/blog\/data\/Wiirtools-AccTrans.PIE\">Pie script for the tilt\/roll<\/a> and the <a href=\"http:\/\/cb.nowan.net\/blog\/data\/wiirtools.cmo\">CMO<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At last, the use of a Wiimote inside Virtools! You don&#8217;t even need a specific BB, only read values from a virtual joystick or emulate keystrokes. Thanks to Carl Kenner for GlovePie and Deon van der Westhuysen for&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,16],"tags":[211,465,215,216,212],"_links":{"self":[{"href":"http:\/\/cb.nowan.net\/blog\/wp-json\/wp\/v2\/posts\/298"}],"collection":[{"href":"http:\/\/cb.nowan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/cb.nowan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/cb.nowan.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/cb.nowan.net\/blog\/wp-json\/wp\/v2\/comments?post=298"}],"version-history":[{"count":0,"href":"http:\/\/cb.nowan.net\/blog\/wp-json\/wp\/v2\/posts\/298\/revisions"}],"wp:attachment":[{"href":"http:\/\/cb.nowan.net\/blog\/wp-json\/wp\/v2\/media?parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/cb.nowan.net\/blog\/wp-json\/wp\/v2\/categories?post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/cb.nowan.net\/blog\/wp-json\/wp\/v2\/tags?post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}