Commit 6d207b02 by lyc

月球轨道半径修改

parent d07cf1ae
......@@ -10,7 +10,7 @@ export function addMoonTrack(viewer) {
viewer.timeline.zoomTo(start, stop);
const inclination = Cesium.Math.toRadians(28.5); // 轨道倾角(以弧度表示)
const semiMajorAxis = 38440000; // 半长轴(米),大约为月球到地球的平均距离
const semiMajorAxis = 384400000; // 半长轴(米),大约为月球到地球的平均距离
// const period = 27.321582 * 24 * 60 * 60; // 月球的公转周期(秒)
const period = 360 ;
// 定义轨道上的点数
......@@ -61,7 +61,7 @@ export function addMoonTrack(viewer) {
// 设置月球的形状
model: {
uri: 'https://raw.githubusercontent.com/jinlinchao123/Cesium-assets/main/3Dmodel/moon.gltf',
minimumPixelSize: 100,
minimumPixelSize: 10,
scale: 200.0,
},
// 显示月球的运动轨迹
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment