Camera now centers on focusable zone properly

This commit is contained in:
Hanusiak Piotr 2022-01-13 18:54:38 +01:00
parent a164cedf3f
commit c2b2385e96
6 changed files with 97 additions and 42 deletions

View file

@ -211,7 +211,6 @@ class IframeListener {
} else if (payload.type === "setProperty" && isSetPropertyEvent(payload.data)) {
this._setPropertyStream.next(payload.data);
} else if (payload.type === "cameraSetViewport" && isCameraSetViewportEvent(payload.data)) {
console.log(payload.data);
this._cameraSetViewportStream.next(payload.data);
} else if (payload.type === "cameraFollowPlayer" && isCameraFollowPlayerEvent(payload.data)) {
this._cameraFollowPlayerStream.next(payload.data);

View file

@ -25,7 +25,6 @@ export class WorkAdventureCameraCommands extends IframeApiContribution<WorkAdven
lock: boolean = false,
smooth: boolean = false
): void {
console.log({ x, y, width, height, lock, smooth });
sendToWorkadventure({
type: "cameraSetViewport",
data: { x, y, width, height, lock, smooth },