Page 1 of 1

centerParams and zoomview

Posted: 24 Apr 2013, 12:28
by radiateur
Hi,

I use zoomView and it works nice i do it like the doc says :

Code: Select all

var centerParams:MapCenteringParams = new MapCenteringParams(Number(clickedTile.x), Number(clickedTile.y), Number(Tile.z));
openSpace.zoomView(1.3,true,centerParams);


But i'd like to retrieve and store the previous centerParams of the openspace view, before i Zoomed on a clicked tile.
In order to dezoom at the end of a dialog and recenter the camera view as it was just before. (it is unfortunatly not default coordinates like 0,0,0 because scrollview is active on the map).

But i don't find the way to retrieve these coords values, i read all the doc, but i can't find a propety or a method to retrive this. I also managed to check for Position3D, but i don't find the answer.

Please help.

Re: centerParams and zoomview

Posted: 24 Apr 2013, 14:59
by Bax
The information you are looking for doesn't exist. In fact OpenSpace doesn't keep the "currently-centered-tile" coordinates in memory during camera panning/zooming. The best you can do is un-zoom centering back on the avatar coordinates.

Re: centerParams and zoomview

Posted: 25 Apr 2013, 10:32
by radiateur
Thank you Bax -_-

Well I couldn't believe that something missed from openspace ;)