just a quick question regarding camera.up.set(0, -1, 0);
I have a (controls) camera orbiting a scene, and when the user dips his mouse beneath the floor, the camera flips into a new world. Just wondering how to animate that flip instead of having it happen instantly.
Im using camera.up.set(0, -1, 0); to flip the camera. Would anyone happen to know how to stretch that flip over a few quick milliseconds? Point is to let the user experience a quick whirl to let them get whats happening as they dip beneath the floor.
function onPositionChange(o) {
if (camera.position.y < -0.1){
camera.up.set(0, -1, 0);
}
}
" However, it does not maintain a constant camera up vector. That means if the camera orbits over the “north” and “south” poles, it does not flip to stay “right side up”.