-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
resetCameraPos = (position = new THREE.Vector3(0, 0, 0)) => {
this.controls.target.copy(position);
this.controls3d.target.copy(position);
const pos = new THREE.Vector3(
PARAMS.camera.position.x,
PARAMS.camera.position.y,
PARAMS.camera.position.z,
);
this.camera.position.copy(position.add(pos));
this.camera.updateProjectionMatrix();
this.controls.update();
this.controls3d.update();
};Metadata
Metadata
Assignees
Labels
No labels