I have a problem I run into. I have a 2d game but I do have a some 3d effects with different layers at different zVertex.
[sprite setVertexZ:40];
Objects on this layer appear within the screen even if the position on their layer is 480 x 160 (in the far right side of the screen). Since the layer is further away from the viewer, they appear somewhat close to the center of the screen. Now I have a need to know the coordinates where the object appears relative to the screen. If it appears let's say 40 pixels left or the right side of the screen I need to know its coordinates of 440x160. Any idea how to achieve this?
Thanks!