Hey there, I have a problem with setTarget. (sorry for my english )
So to sum up, I am developping an application which create Virtual Tour with BabylonJS.
In my creation part of the visit I have a button that can fixe the camera so when I am coming in that scene, the camera is looking at somewhere I wanted to. Here is the picture:
Here you can see my function setTarget is working, I want to look at here when I am coming in this scene.
So I pick up the value of the target, and I push into a JSON.
Then in this app, we can see the preview of the virtual Tour, and it’s there my setTarget is not working.
You can see that I am not looking at the right direction.
Here is my code I am using in this part of the app:
So When I am looking at the console, the vector lookAtCamera is picking the right values, but anyway setTarget is not working.
vecteur = value of lookAtCamera and camera = camera.getTarget().
As you can see, my vector lookAtCamera has the right values but it’s like if the camera is not taking these values… Do you have any idea why it’s not working there ? Because it’s not like it’s not working at all ^^ It’s working in my first picture