I have the layer that’s transformed with CCCamera. He’s looks like a plane rotated on 45 degrees around X-axis:
Here is 3D projection!
I need to compute 2D coordinates for this layer from 2D screen point:
CCPoint layerLocation = CCDirector::sharedDirector()->convertToGL(pTouch->getLocationInView());
The method CCDirector::convertToGL returns a wrong values for the touches thats above and below the Y:0.
How to modify this method for the right calculations? Cocos2dx 2.2.0