Hi again!
I’d very much like to rotate my FreeCamera (not ArcRotateCamera) around a point in space programatically, so in scene.beforeRender
, not using an animation.
Let’s say the point is 0, 0, 0
and the camera is at position 0, 50, -55
.
Anybody willing to help me out with the math please?
camera.setTarget(Vector3.Zero());
scene.onBeforeRenderObservable.add(() => {
// pls mr.camera rotate around the target >:(
});
Thanks and much love!