nguoidienyeu0 / andengine

Automatically exported from code.google.com/p/andengine
0 stars 0 forks source link

touch event coordinates are off #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Create a scene with a ZoomCamera that you rotate onUpdate. Try using the 
coordinates you get from onSceneTouchEvent to position a box under the finger.
This is what my example code does:
https://bitbucket.org/giszmo/andengineexamples/src/305bb63316a2/src/org/anddev/a
ndengine/examples/ZoomCameraExample.java

What is the expected output?
the onSceneTouchEvent's coordinates are correct.

What do you see instead?
the coordinates are off as soon as the camera is rotated.

What version of the product are you using?
rev. 9a6f67f0a158

Weird is, the problem gets fixed as soon as a HUD is added. <== HINT

P.S.: I would love to see a working version without the HUD-stuff of my 
test-Example in the "official" API-examples as this is much more of a 
ZoomCameraExample than the ZoomExample (SmoothCameraExample actually) that is 
in now.

Original issue reported on code.google.com by LWanders...@gmail.com on 8 Mar 2011 at 12:03