Hi!
If you need a line as a circle, use something like this:
let pts = new THREE.Path().absarc(0, 0, planet.orbitRadius, 0, Math.PI * 2).getPoints(90);
let g = new THREE.BufferGeometry().setFromPoints(pts);
let m = new THREE.LineBasicMaterial( { color: 0xffffff, transparent: true, opacity: 0.05 } );
let l = new THREE.Line(g, m);
geometry.vertices relies to THREE.Geometry that was deprecated since r125. Now, all geometries are of THREE.BufferGeometry.
Ok thank you, https://codepen.io/leen-alfalah/pen/KKWvBzO
i saw this pen and when i try to change angel to 30 like you see how i can make sphere still move around the orbit ?
I wrote a short concept, where you can add a planet as a child to an orbit, then you can set any angle to the orbit, the planet stays on it. Also, I added an order of rotation to the planet, so you can set its inclination (if you need it)
Example: https://jsfiddle.net/prisoner849/os3Lwqa8/
Picture: