Hello, when I move an object and I orient it with the looKat function, my object is in the right direction but if I put a break point it returns to its original orientation.
How can I record the orientation of my object when it is no longer moving
var deplacement=10 ;
var vector = new THREE.Vector3(0,0,0);
vector.setX (deplacement);
vector.setZ (deplacement);
camion.lookAt( vector );
function animate() {
requestAnimationFrame( animate );
deplacement = deplacement + 0.01;
camion.position.x = 10 ;
camion.position.z = 10;
renderer.render( scene, camera );
this is not good
camion.lookAt( vector );
function animate() {
requestAnimationFrame( animate );
deplacement = deplacement + 0.01;
camion.position.x = deplacement ;
camion.position.z = deplacement;
renderer.render( scene, camera );
it’s better
Merci, bonne soirée