Actions

Pocket Physics

From GameBrew - a wiki dedicated to Video Game Homebrew.

Pocket Physics
Pocketphysicds.png
General
Author(s)0xtob
TypePuzzle
Version0.6
LicenceMixed
Links
Download
Website
Advertisements


Pocket Physics is a physical construction kit for your pocket. You draw objects with the stylus and make them physical by pressing the play button. Like this, you can design contraptions and crazy machines on the go.

It was voted the 8th Top DS homebrew in the 2009 best DS homebrew contest.

Installiation

To run it, you need a DS and an adapter card for booting homebrew.If you want to save your creations, you need to patch Pocket Physics with a DLDI driver.

If DLDI is working, you will see save and load icons in the right bar in Pocket Physics.If you are experiencing problems saving on a SuperCard Lite, try the pocketphysics_nothumb version.


User Guide

Just draw on the screen!

The buttons on the upper right switch between solid and dynamic objects. Press play to start the simulation, and press stop to reset it.

Use the box and circle tools on the lower left to draw perfect boxes and circles. Using the pin tool, you can pin objects to the background or to each other.

You can delete things with the "X" tool next to the play button. If you want to start over, tap the destructor button next to the delete button.

Use arrow button left of the delete button to move objects.

Using the D-Pad or the ABXY buttons you can move the paper.

Alternatively hold L (or R) and hold the stylus on the screen.

Select toggles the visibility of the viewing window on the top screen.

Tips

  • You can even draw and delete things while the simulation is running.
  • If you have a DS Motion card, you can use it to control gravity. Just plug it in and start Pocket Physics. If you launch homebrew from Slot-1, swap your card for the DS Motion and press L+R.
  • If you place two pins next to each other, the pinned shape will act like it's attached to a spring.
  • With the drawing tool, you can draw open and closed shapes. Shapes will be closed if the end position is close to the start position.
  • When creating a pin, hold down the pen and move it around. You can move the pin around until you lift the pen.
  • During simulation, you can use the move tool to throw objects.

Changelog

v0.6

  • Massive speed optimizations!
  • Fixed the "explosion" bug
  • As a side effect of this fix, results are now 100% reproducible
  • Moved to Box2D 2.0 (Box2D now has official DS support!)
  • Deleting sketches in the loading dialog
  • Objects that fall out of the world are no longer simulated
  • .PP files now have a single root elemnt => XML compliance
  • An author tag is added to the .PP files
  • Pins now snap to the center of gravity of shapes
  • There's a separate version that doesn not save screenshots for people with saving problems with the SuperCard Lite

v0.5

  • Added the moving tool
  • Improved speed (different timing, inactive objects fall asleep)
  • Better repeatability
  • sketches are now stored in /data/pocketphysics/sketches by default

v0.4

  • Saving and loading! (introducing the XML-based .pp file format)
  • Smart pin placement: While the pen is on the screen, you can move the pin around. It's position is fixed when you lift the pin. While you drag the pin around, the objects that are about to be pined are highlighted.
  • Smart deleting: Deleting also works just smart pin placement. Also, pins can now be deleted.
  • Toggle viewing window visibility with select.

v0.3

  • larger paper (3x3 screens)
  • scrolling using either D-Pad, ABXY, or pen (hold L or R)
  • dual screen support (overview on top, zoomed view on bottom)
  • open shapes (drawn shapes are only closed if the end is close to the start)
  • Using the actual shape for picking => o more accidential deletions
  • updated to box2d 2.0 (svn r20)
  • using ds hw div/sqrt in box2d
  • if simulation is behind time, 2 steps are performed at once => subjectively faster
  • faster and better drawing code
  • pins are hidden during simulation

v0.2

  • Pins! Pin things to the background or pin two things together
  • Numerical fixes in Box2d => (Hopefully) better stability
  • Removed dynamic timestep adjustment => Subjectively slower, but more reproducible results
  • Standby mode

v0.1

  • initial release


Credits

Petri Purho, Erin Catto, Brunni, Robert Kavaler, Eric Jordan, The DS Motion guys, Dovoto, Joat and Wintermute, Felipe Skroski