// Navigation Functions (continuation) function centerBlackHole() { cameraRotationX = 0; cameraRotationY = 0; cameraDistance = 200; console.log("π³οΈ Centered on Nexus Core Black Hole"); } function toggleAccretionDisk() { if (accretionDisk) { accretionDisk.visible = !accretionDisk.visible; console.log(`π« Accretion disk ${accretionDisk.visible ? 'enabled' : 'disabled'}`); } } function showEventHorizon() { // Highlight black hole if (blackHole) { gsap.to(blackHole.material, { opacity: blackHole.material.opacity === 0.8 ? 0.3 : 0.8, duration: 1 }); } console.log("π Event horizon visibility toggled"); } function followSpiralArm(armName) { const armMap = { 'fusion': 0, 'proofs': 1, 'tools': 2, 'apex': 3 }; const armIndex = armMap[armName]; if (armIndex !== undefined) { cameraRotationY = (armIndex * Math.PI / 2) + galaxyRotation; cameraDistance = 300; console.log(`π Following ${armName} spiral arm`); } } function jumpToStarSystem(systemId) { const system = starSystems.find(s => s.data.id.includes(systemId)); if (system) { const starPos = system.star.position; cameraRotationY = Math.atan2(starPos.y, starPos.x); cameraDistance = 100; // Show knowledge scanner showKnowledgeScanner(system.data); console.log(`β Jumped to ${system.data.name} star system`); } } function resetGalaxyView() { cameraRotationX = 0.3; cameraRotationY = 0; cameraDistance = 500; console.log("π Reset to galaxy overview"); } function updateZoom(value) { cameraDistance = 50 + (value * 200); } function toggleTimeControl() { timeScale = timeScale === 1.0 ? 0.0 : 1.0; const button = event.target; button.textContent = timeScale === 0 ? "βΆοΈ Resume Orbit" : "βΈοΈ Pause Orbit"; console.log(`β° Time scale: ${timeScale}`); } function toggleParticleTrails() { particleTrails = !particleTrails; console.log(`β¨ Particle trails ${particleTrails ? 'enabled' : 'disabled'}`); } function showHyperspace() { // Quick camera movement effect gsap.to(camera.position, { x: camera.position.x * 0.1, y: camera.position.y * 0.1, z: camera.position.z * 0.1, duration: 0.5, yoyo: true, repeat: 1 }); console.log("π Hyperspace jump effect"); } function showKnowledgeScanner(systemData) { const scanner = document.getElementById('knowledge-scanner'); const content = document.getElementById('scanner-content'); content.innerHTML = `
Stellar Classification: Knowledge Star
Mass: ${systemData.mass} Knowledge Units
Orbital Radius: ${systemData.position.r} parsecs
Harmonic Frequency: ${BASE_FREQ} Hz