I hope my camera can always Revolve around the object itself

Dear all
I try to set camera can always Revolve(orbit) around the object itself only, but I failed again and again.
https://penghu.info/3D/Test2.php
is there anything wrong with my camera.position setting or lookat setting ?

Can you please share the code, how you set up the controls and target?

Dear mjurczky:

My Code is as follows… thank you

const canvas = document.querySelector(’#c’);
const renderer = new THREE.WebGLRenderer({canvas});

const fov = 30;
const aspect = 2; // the canvas default
const near = 0.1;
const far = 200;
const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
//camera.position.set(0, 30,-5);
//camera.lookAt(0,0,0);
var width = window.innerWidth;
var height = window.innerHeight;

camera.position.set(1, 3, 10);
//看你要垂直哪一個軸
camera.up.set(0, 1, 0);
camera.lookAt.X = 10;
camera.lookAt.Y = 10;
camera.lookAt.Z = 10;

const controls = new OrbitControls(camera, canvas);
controls.target.set(0, 0, 0);