Update FollowersUI when camera auto adjust position

This commit is contained in:
fgnm
2020-08-26 15:15:51 +02:00
parent 8a810dfcd0
commit 95faeeffa4
@@ -238,6 +238,8 @@ public class Sandbox {
float x = Interpolation.smoother.apply(cameraPosOrigin.x, cameraPosTarget.x, progress);
float y = Interpolation.smoother.apply(cameraPosOrigin.y, cameraPosTarget.y, progress);
getCamera().position.set(x, y, 0);
facade.sendNotification(PanTool.SCENE_PANNED);
}
}
@@ -254,7 +256,7 @@ public class Sandbox {
}
public void scenePanned() {
if (isViewingRootEntity()) {
if (isViewingRootEntity() && timeToCameraPosTarget <= 0) {
sceneConfigVO.cameraPosition[0] = getCamera().position.x;
sceneConfigVO.cameraPosition[1] = getCamera().position.y;
}