Please give us negative anchorX and anchorY values!

Dear Corona staff!

I guess the title explains it all --> please please please give us the option to enter negative values for anchorX and anchorY values. It makes all sorts of stuff soooo much easier and more powerful.

If there is a hardcoded openGL 2 reason why this is not possible please let us know.

Can you add this to our feature request site:

http://feedback.coronalabs.com

Thanks

Rob

Hi Rob or others,

I would like to ask again for the option to set anchor values outside the 0 to 1 range. I have done a feature request, without any votes unfortunately, but this seems like such a simple change to the SDK that would create so much more practicality, that I’m reposting here.

Am I wrong in assuming that this would a) be feasible and b) be fairly easy to implement due to the relatively simple nature of transformation matrices? Or is there a limitation in OpenGL that prohibits this?

I’ll ask.

thomas6 forgive my ignorance, but could you educate the less-informed among us as to the benefits to the negative values? Seems like you can’t get much more exact than 0 for left and 1 for right. Does the negative value flip the object on it’s axis? Not trying to be rude, I just want to know what I’m missing out on!

The short answer Alex is that you can have objects rotate around a point outside it’s box. For instance, if you were settings up a solar system simulator, you could set the anchor point centered over the star and when you rotate the planet it would orbit the star.

Rob

@Rob thanks for the insight!

Hi all,

I don’t have a specific build number or ETA, but we will (re)-implement this ability before too long.

Brent

Hi Brent, Rob and other Corona staff,

Thanks!!! That’s great news! It 'll save me from creating a million displayGroups in my Corona career! Yes!!! :slight_smile:

What I do is create a displayGroup and then add your image to it. Then image:translate(-x,-y) the distance from the center you want it to go. Now you can rotate the group and image separately.

Can you add this to our feature request site:

http://feedback.coronalabs.com

Thanks

Rob

Hi Rob or others,

I would like to ask again for the option to set anchor values outside the 0 to 1 range. I have done a feature request, without any votes unfortunately, but this seems like such a simple change to the SDK that would create so much more practicality, that I’m reposting here.

Am I wrong in assuming that this would a) be feasible and b) be fairly easy to implement due to the relatively simple nature of transformation matrices? Or is there a limitation in OpenGL that prohibits this?

I’ll ask.

thomas6 forgive my ignorance, but could you educate the less-informed among us as to the benefits to the negative values? Seems like you can’t get much more exact than 0 for left and 1 for right. Does the negative value flip the object on it’s axis? Not trying to be rude, I just want to know what I’m missing out on!

The short answer Alex is that you can have objects rotate around a point outside it’s box. For instance, if you were settings up a solar system simulator, you could set the anchor point centered over the star and when you rotate the planet it would orbit the star.

Rob

@Rob thanks for the insight!

Hi all,

I don’t have a specific build number or ETA, but we will (re)-implement this ability before too long.

Brent

Hi Brent, Rob and other Corona staff,

Thanks!!! That’s great news! It 'll save me from creating a million displayGroups in my Corona career! Yes!!! :slight_smile:

What I do is create a displayGroup and then add your image to it. Then image:translate(-x,-y) the distance from the center you want it to go. Now you can rotate the group and image separately.