qml-box2d/qml-box2d — pull request #69 by bjorn (2014-08-06 23:04:14+00:00)
Title: Introduced Body.target

This allows using any existing item as the target for physics emulation, rather than requiring such items to be wrapped by a Body item. I've adjust the "demolition" example to show how physics properties can be applied to an existing QML `Image` item.

There's one `TODO` left in the change that I intend to fix before this gets merged, but since fixing that won't change anything fundamental I've decided to open this pull request already so that it can get an initial review.

This property is being introduced to allow for a cleaner integration with other libraries like V-Play and Bacon2D. (see Bacon2D/Bacon2D#67)

Since it required me to put an explicit `transformOrigin: Item.TopLeft` in `demolition.qml`, I'm now also convinced that #52 is a necessary feature and will try to find some time for reviewing that patch later (though unfortunately I'll be rather busy with family visiting over the next few days).