Hi,

I have an world map texture applied to a sphere. I'm dynamically
placing a marker onto the map (it's showing user's progress as they
'walk' round the globe)  I need the globe to spin round, so that the
marker is always at the centre of the screen.

I'm struggling getting it work though.. The code I've got so far is as
follows:

var xPos:Number = (Point(_map.setCurrentPlayer(steps)).x) - 210
                        var mapWidth:Number = 843//_map.width
                        var per:Number = (xPos/mapWidth)*100;
                        var panAngle:Number = (per / 100) * 360
                        camera.panAngle = panAngle

it's not really doing the job though..

Can anyone help me out on this please. It's pretty urgent now too :s

Thanks in advance! :)

Reply via email to