Hello,
I am using a simple 3d Model display with an ArcRotateCamera.
By default the whole contents is centered within the window.
Now I would like to basically just move everything in the window 500px to the right.
When I use css with “transform: translate(500px);” I get the desired result but the the canvas is obviously cut off on the left side.
What would be the way to do this within the BabylonCanvas?
I would like to keep all camera and interaction angles the same as it is in the centered version.
Hello! You want the canvas to move, but the object that is viewed through it to stay fixed on the screen, like the canvas is a “window” through which the object is seen? Like this?
I think that this can be achieved by applying the inverse transformation to the camera’s target in world space, so, if you move the canvas 500px to the right, you have to transform the target to the left to the equivalent of 500px in world space.
@sebavan
hello master sebavan.
I am trying to find some intel on targetScreenOffset.
Can’t find it in the API.
Is it a new or undocumented feature?
Cheers!