ody.distance * Math.cos(angle),
                        y: body.distance * Math.sin(angle)
                    };
                });
                self.postMessage(updatedBodies);
            }
        `], { type: 'application/javascript' });
        const workerURL = URL.createObjectURL(workerBlob);
        const worker = new Worker(workerURL);

        let planets = [];
        celestialBodies.forEach(body => {
            planets.push({
                ...body,
                x: 0,
                y: