in Android, in order to get object’s world position I just used:
CCPoint location = convertToWorldSpaceAR(CCPointZero);
But on iOS, my iPhone 4, if I rentina is enabled, all of my code must use setPositionInPixel instead of setPosition function.
The same situation with getPositionInPixel. It seem to run correctly.
Now I need to get my object’s worldPosition. Could you please show me how to do it?
If I use convertToWorldSpaceAR(CCPointZero) and enable rentina, it returned wrong value.
There was a bug of CCLayer with setanchor too. I don’t know it will affect or not: