2D重力轨道模拟
详情
概要
交互式2D模拟器展示小物体受重力影响的轨道运动。
提示
创建一个2D模拟器,用于可视化一个小物体在重力作用下绕一个庞大的中心物体运行。项目概述:开发一个交互式2D模拟器,展示小物体围绕中心天体运行,目的是通过可调参数演示重力效应。UI/UX设计和流程:设计一个带有滑动条的表单,以调整参数:中心质量(1–1000个地球质量)、初始距离(1–100单位)和初始切向速度(0–50单位;默认值为1)。确保这些值变化时自动重新启动动画。整合平滑连续的动画效果,并为运行、逃逸或碰撞三种状态提供清晰的视觉指示。核心功能与逻辑:基于输入参数创建重力模型,用物理计算模拟物体轨迹,并实时更新动画显示参数变化。通过独特视觉标识突出状态。最佳实践:确保应用响应迅速、实时更新流畅;使用清晰标记的UI元素提高易用性;提供直观的视觉反馈以增强用户理解;并包含常见问题解答(FAQ)部分,解答关于动画及其功能的常见疑问。
原始提示
Create a 2D simulator of a small object orbiting a massive central body due to gravity. Include a form with sliders to adjust the central mass (1–1000 Earth masses), initial distance (1–100 units), and initial tangential velocity (0–50 units, default 1). When values in the form are changed, immediately restart the animation. Animate and draw the orbit and indicate whether the object remains in orbit, escapes, or crashes into the central body. Q: What style of animation do you envision for the orbit? A: Smooth, continuous motion. Q: Should there be labels or visual indicators for the object's state (orbiting, escaping, crashing)? A: Yes, I want clear indicators.
生成成本概要
模型名称: o3-mini-high
响应时间: 93.26 sec.
结果令牌: 11,903
成本: $0.05300900