Exactly, I have tried applying the rotation before the transform but it will always rotate around (0,0). I want to always rotate around the current screen center (camera.position.x + viewport.width * 0.5, camera.position.y + viewport.height * 0.5) if that makes any sense?
So the camera movement will go according to screen axis, the rotation will always happen at the current camera focus (center of the screen).
Thanks,
Mark.
Show differencesHistory of post edits
#1mwkenna
Posted 02 January 2013 - 10:30 AM
Exactly, I have tried applying the rotation before the transform but it will always rotate around (0,0). I want to always rotate around the current screen center (camera.position.x + viewport.width * 0.5, camera.position.y + viewport.height * 0.5) if that makes any sense?
Thanks,
Mark.