i made a project with car and camera now i need to shrink car and move camera
//three js setup .
here is camera and car
//camera
const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 100, 2000 );
camera.position.set(car.position.x,300,car.position.z + 300);
camera.rotation.x = degGetter(-25);//degGetter is function that translates radiens to deg's
//car
function stage2(){
loader.load('./3d-objects/car/scene.gltf',
function(gltf){
car = gltf.scene.children[0];
car.rotation.z = Math.PI
car.scale.set(0.5,0.5,0.5);
scene.add(car)
}
)
}
the problem is the whole angle changes even thoght all i did was car.scale.set(0.1,0.1,0.1) // 1/5 of old size
and camera to
camera.position.set(car.position.x,60,car.position.z + 60);//also 1/5