Hello Needle,
I use two camera in my scene, one perspective and another orthographic.
I generated a component to manage the angles, but I have a big problem : when I change the angle of view of my “main camera” which is the perspective one, there is not problem.
But when I tried to use the exact same behaviour with my orthographic camera, it vibrates like the position is
I change my camera by using :
document.getElementById(this.buttonId)?.addEventListener('click', (el) => {
let e = el
if(this.originalCameraComponent && this.orthographicCameraComponent) {
if(this.isSecondCamera) {
this.context.setCurrentCamera(this.originalCameraComponent)
this.isSecondCamera = false
} else {
// @ts-ignore
this.context.setCurrentCamera(this.orthographicCameraComponent)
this.isSecondCamera = true
}
}
})
Here the component used for change angleviews :
After verification, I change the position of my camera only in my angle view script. Nowhere else.
Do you have any idea of the problem ?
by user 224464722878005248