Hi peeps,
Just need a quick hand with my rotation.
My game is set in space. My ship is fixed into position in the center of the screen, and as you look at it it does not move from this position.
All the background elements are placed into groups and then these are placed into one, larger than screen size group.
When you move the ship, the background group moves instead, to give the illusion that the ship is moving. The background group can rotate fine and move up,down, left & right at the moment.
The problem is the type of rotation. If you move the ship, to say the left of eg. planet earth, when you rotate the ship, the earth and the background group rotates but in a fixed position relative to the ship. ie. if you move to the left of planet earth, the planet rotates but rotates next to you on the right.
What I actually want is the background group to rotate around the display center so therefore giving the illusion of rotating around the ship. ie. if you move to the left of planet earth and then rotate, planet earth rotates in a wide circle around the ship (ie. display center).
I hope I have explained this properly. If you need clarification please ask.
I have included this crude diagram to help put my idea across. Hope it helps…