I’m trying to position multiple objects on the surface of a rotating sphere. (ships swimming on the cyclinder surface)
This works, but I would like to rotate the object to a different orientation at the beginning. Where do I start here?
newEnemy.position.setFromCylindricalCoords(worldRadius + 0.5,
Math.PI * 2 * Math.random(), row);
var lookAt = new THREE.Vector3();
var lookAtScale = new THREE.Vector3(0, 0, 0);
lookAt.copy(rollingGroundSphere.position);
lookAt.multiply(lookAtScale);
newEnemy.lookAt(lookAt);
rollingGroundSphere.add(newEnemy);
The shuttle in the foreground was added directly into the scene, the others were added to the cylinder surface (here with some distance). These objects would have to be rotated.