This simulator would be so much better with this music!
(function() {
var clock = new THREE.Clock();
var interstellar = function() {
issObject.translateOnAxis(new THREE.Vector3(0, 0, 1), -20);
issObject.rotateY(-7.12094334814*clock.getDelta());
issObject.translateOnAxis(new THREE.Vector3(0, 0, 1), 20);
requestAnimationFrame(interstellar);
}
interstellar();
})()
(7.12094334814 is "68 RPM", if my math is correct.)EDIT: Corrected rotation to spin around (roughly) the center of mass.
var clock = new THREE.Clock(); issObject.rotateX(3.14/2); var interstellar = function() { issObject.rotateZ(-7.12094334814*clock.getDelta()); requestAnimationFrame(interstellar); } interstellar();
The numbers on the screen are useless with this though.