UnderwaterApps / overlap2d-runtime-libgdx

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

Enable origin utilization in transform calculations #107

Closed rolandoislas closed 8 years ago

rolandoislas commented 8 years ago

Backwards compatible. Defaults to false and uses (0,0) as origin.

azakhary commented 8 years ago

Could you elaborate a bit more on what issue this fixes? Or what does this add?

rolandoislas commented 8 years ago

Currently, when transforming a composite the origin is hard coded to (0,0). The boolean variable added to TransformComponent will now allow the settable origin to be used.

azakhary commented 8 years ago

But if you have to set that default anyway for each component, why not set directly originX originY values instead?

rolandoislas commented 8 years ago

For backwards compatibility. It's marked as a TODO. Really any implementation that would allow for values other than the hardcoded 0 would be nice.

alexfacciorusso commented 7 years ago

So guys, why isn't this or #108 accepted and merged?