This is the work I have done so far.我正在使用Three.js動畫製作太陽系。我想讓行星圍繞太陽旋轉。我已經完成了在太陽周圍創建軌道的工作。但我不知道如何讓地球在特定的軌道上旋轉。我創造了這樣一個軌道和行星。圍繞軌道旋轉物體
var material = new THREE.LineBasicMaterial({color: 'aqua'});
var geometry = new THREE.CircleGeometry(3.2, 1000);
geometry.vertices.shift();
var line = new THREE.Line(geometry, material);
line.position.set(0.5, 5, 6);
line.rotation.x = 2;`
geometry = new THREE.SphereGeometry(0.5, 32, 32);
material = new THREE.MeshBasicMaterial({color: 'yellow'});
p1 = new THREE.Mesh(geometry, material);
p1.position.set(3, 3.8, -1);'
所以,我想讓這個星球在特定的圓上旋轉。