Merapi + Physics

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.

 

6 thoughts on “Merapi + Physics

  1. Cato Paus

    WE need to vote again :) https://bugs.adobe.com/jira/browse/FP-247

    I realy hope we can have USB communication in AIR and Flash Player :)

    I can imagine many different type of applications which can communicate with different devices connected over USB, atleast my phone (over bluetooth or cable)…

    It would be great if AIR and Flash player can have USB API for those things, so that we (developers) are not forced to write socket-servers and take care of installation etc..

  2. Adam Flater

    @cato

    This is purely speculative, but I would say this stuff will be included in air eventually, it’s just a question of when. However, you will be able to do this kind of stuff using Merapi.

Comments are closed.