How i can teleport my avatar without viewport centering?

Post here your questions about the OpenSpace 2.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
Darkwing Duck
Posts: 20
Joined: 21 Dec 2010, 13:17

How i can teleport my avatar without viewport centering?

Post by Darkwing Duck »

Hi.
How i can teleport my avatar without viewport centering?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

This is not possible, but you might have a workaround: just before teleporting the avatar, change the map virtual limits using the IOpenSpaceAPI. setCustomMapLimits method (if you are able to calculate them).
On teleport completion, reset the map limits to default using the same method.
Paolo Bax
The SmartFoxServer Team
Darkwing Duck
Posts: 20
Joined: 21 Dec 2010, 13:17

Post by Darkwing Duck »

thanks, but i try recreate my avatar in certain point and it works..
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Good idea!
Paolo Bax
The SmartFoxServer Team
Post Reply