const cameraPose = useRef({
position: new THREE.Vector3(
data.images[data.images.length - 1].canvasPosition.x,
30,
data.images[data.images.length - 1].canvasPosition.y
),
quaternion: new THREE.Quaternion(),
});
both are using this state
const cameraPose = useRef({
position: new THREE.Vector3(
data.images[data.images.length - 1].canvasPosition.x,
30,
data.images[data.images.length - 1].canvasPosition.y
),
quaternion: new THREE.Quaternion(),
});
both are using this state