Adam Flater » Gryoscope http://www.adamflater.net Tech, UX, Design Fri, 13 Dec 2013 05:00:11 +0000 en-US hourly 1 http://wordpress.org/?v=3.5.1 Merapi + Physics http://www.adamflater.net/2008/05/22/merapi-physics/ http://www.adamflater.net/2008/05/22/merapi-physics/#comments Thu, 22 May 2008 01:28:00 +0000 adamflater http://www.adamflater.net/?p=55 merapi-long

Today at Web Maniacs I gave a fairly brief, short notice talk on Merapi. I had a few slides and presented a couple examples. The coolest example by far is something that Doug McCune helped me throw together. This example involves using a physics engine for Flex called Foam and Merapi to invoke the Java/C call SMS/Unimotion to read the Mac Book Pro’s accelerometer. Rob Rusher (also a speaker at Web Manics) was nice enough to shoot a video of this example:


and here’s a screen shot:


The source code needed in the Flex app is this tag:

  <gyroscope:merapigyroscope id="gyro">

The MerapiGyroscope class has a few properties (smsX, smsY, smsZ) that are bindable and automatically updated by the Java side of Merapi.

This is sneak peak of much more cool stuff to come from the framework and I can guarantee that these libraries will be available for you to play with soon.

 

]]>
http://www.adamflater.net/2008/05/22/merapi-physics/feed/ 6