Revert to version 44b0413
This commit is contained in:
parent
15f79871d4
commit
505fe4f6e8
@ -293,7 +293,7 @@ pauseButton.addEventListener('click', () => {
|
|||||||
pauseButton.textContent = isPaused ? 'Play' : 'Pause';
|
pauseButton.textContent = isPaused ? 'Play' : 'Pause';
|
||||||
});
|
});
|
||||||
|
|
||||||
const speeds = [1, 6000, 30000, 60000, 600000];
|
const speeds = [1, 100, 500, 1000, 10000];
|
||||||
let currentSpeedIndex = 0;
|
let currentSpeedIndex = 0;
|
||||||
let timeScale = speeds[currentSpeedIndex]; // Start with 1x speed
|
let timeScale = speeds[currentSpeedIndex]; // Start with 1x speed
|
||||||
|
|
||||||
@ -308,7 +308,7 @@ speedToggleButton.addEventListener('click', () => {
|
|||||||
const clock = new THREE.Clock();
|
const clock = new THREE.Clock();
|
||||||
const timeContainer = document.getElementById('time-container');
|
const timeContainer = document.getElementById('time-container');
|
||||||
let simulationTime = new Date();
|
let simulationTime = new Date();
|
||||||
const TIME_SPEED_FACTOR = 1; // 1 real second = 1 simulation second at 1x
|
const TIME_SPEED_FACTOR = 60; // 1 real second = 1 simulation minute at 1x
|
||||||
const MS_IN_A_DAY = 24 * 60 * 60 * 1000;
|
const MS_IN_A_DAY = 24 * 60 * 60 * 1000;
|
||||||
const MOON_ORBIT_DAYS = 27.3;
|
const MOON_ORBIT_DAYS = 27.3;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user