First of all, I must apologize for my absolute lack of knowledge; I come from a 2D world (Front-end development) and have never been really good at algebra
I am currently trying to create a camera that behaves like the one in Apple’s Reality Composer.
In RC, when a mesh is selected, it becomes the target of the camera without being in the center of the screen. I made this screencast as a demo: Screen Recording 2021-06-29 at 5.00.40 PM
You can see how after moving the mesh to the left, both rotation and zoom use it as its target but without centering the camera on it.
For my current attempt, I tried using an ArcRotateCamera but when I use setTarget, it “jumps” to center the target in the middle of the viewport.
Although it is a super broad question, I wanted to try and ask if you folks know of any thread/tutorial/playground I should take a look at in order to understand what I need to learn to accomplish this…
Currently, I am looking at https://playground.babylonjs.com/#5PWC2D#2 but, quite honestly, I don’t understand much haha.
Thank you very much