Script Physics is a Java scripting app that has a built in physics engine and is capable of realistic n-body physics simulations for low values of n. The entire API is fully documented and provides high level functionality like: touch modes that enable zooming and panning, shape to accelerometer attachment and textures to shape attachment. JavaDocs and three simple tutorials are available with the touch of the Android search button that show how each of the prior examples, and more, can be completed with literally one or two lines of code each.
Script Physics is also deeply integrated with the Android graphics API to take advantage of paints, shaders, bitmaps, menus, dialogs and more. The user's program immediately ends if an Error or Exception is thrown, and the user is presented with the offending code highlighted in the editor.
Script Physics comes bundled with the full source code for five demos that show off the capabilities of it's API, the Android API and even a bit of the Java API:
* Marble mover: Shows off linear shaders, accelerometer attachment, background painting and bitmap shading
* Physics draw: Shows off menus, physics engine, shape creation and gravitational swiping.
* Shape sketch: Shows off static layer screen painting, zoom and pan mode, and geometrical intersection use
* Air Hockey: Shows off multi-touch capabilities, on/off screen visibility detection and touch modes
* Alphabet soup: Shows off dialogs, shape collision detection and bitmap shaders
While this app will run on any Android device, a processor speed of at least 528 MHz is recommended.
Planetary images courtesy NASA/JPL-Caltech.