useEffect(() => {
scene.activeCamera.position = new Vector3(0, 0, 0);
//scene.activeCamera.rotation=new Vector3(0, 0, 0);
}
});
How to reset or set a camera rotation as any Property ‘rotation’ does not exist on type ‘Camera’.
useEffect(() => {
scene.activeCamera.position = new Vector3(0, 0, 0);
//scene.activeCamera.rotation=new Vector3(0, 0, 0);
}
});
How to reset or set a camera rotation as any Property ‘rotation’ does not exist on type ‘Camera’.
There are different camera properties like cameraDirection or cameraRotation:
While ArcRotateCamera got rotation and rotationQuaternion: