Hi,
I’m developing a scenary with a CubeTexture
with a initial camera position of (0,0,0). Inside of it a plane geometry
manually positioned like this:
var geometry = new THREE.PlaneGeometry(1.5 * SCALE, 1 * SCALE);
var material = new THREE.MeshBasicMaterial({map: texture});
var plane = new THREE.Mesh(geometry, material);
plane.position.x = 4
plane.position.y = 0
plane.position.z = 0
plane.lookAt(camera.position);
scene.add(plane)
The scene is moved with DeviceOrientationControls
and the app is forced to launch on LANDSCAPE PRIMARY
(device turned to the left)
If I launch the page with this initial orientation the element is on the correct position.
I I launch the device with the device initially turned to the right (LANDSCAPE SECONDARY
) the element is exactly behind the user vision
How can I set the camera to look to the element on init?
Thanks