UnderwaterApps / overlap2d-runtime-libgdx

Overlap2D - UI and Level Editor libgdx runtime
http://overlap2d.com
Other
170 stars 96 forks source link

Fix transforms not working with physics composites objects #102

Closed leruaa closed 8 years ago

leruaa commented 8 years ago

This PR is my second attempt to fix the issue #81 after the PR #88.

I followed your instructions to compute global coordinates recursively :

The way this properly should be fixed is - when positioning the box2d item in physics system, we should position it using not local coordinates, but global coordinates calculation (by recursively going up through parents)

azakhary commented 8 years ago

Thanks!