Files
IntoHole/playtest/captures/capture_surface_alignment.gd
Yanchen bf6c355fa6 feat: 切换至滚动阻力运行模型并更新资产、编辑器与验证
- 物理规则:现行模型仅保留滚动阻力耗能与恢复系数碰撞,风力、空气阻力、静摩擦、动摩擦不再参与运行;确认三球质量 60/330/约890 kg 及水密度、流阻参数
- 定向加速改为真实顶面接触触发的一次性 +5 m/s 速度事件,模型新增渐进式 U 形导槽出口
- 更新球体、滑槽、水/冰/墙、球洞模型与 storybook 目录、物理、实体配置
- 工坊摆放、编辑器、运行适配与检查脚本同步;删除过时的 baseline 三组检查
- 新增谜题设计参考文档、关卡草稿与本轮实验产物
2026-12-05 10:37:31 +08:00

21 lines
1.2 KiB
GDScript

extends SceneTree
func _initialize() -> void:call_deferred("run")
func run() -> void:
var app=load("res://designer/scenes/workshop.tscn").instantiate();root.add_child(app)
var placement=app.placement
var launch:Dictionary=placement.record_at("directional_boost",Vector3(-1,2,0),0,"launch")
var slope:Dictionary=placement.align_surfaces(placement.record_at("steep",Vector3(0,2,0),2,"slope"),[launch])
var tail:Dictionary=placement.align_surfaces(placement.record_at("straight",Vector3(1,2,0),0,"tail"),[slope])
app.records=[launch,slope,tail]
for y in [0,1]:app.records.append(placement.record_at("wall",Vector3(-1,y,0),0,"wall_%d"%y))
app.spawn_specs=[{"id":"ball","ballTypeId":"iron_ball","position":[-1,3.32,0]}]
app.rebuild();app.reset_simulation();app.kind="";app.refresh_selection()
app.target=Vector3(-.4,2.6,0);app.camera_size=5.6;app.yaw=.9;app.update_camera()
app.sidebar_scroll.scroll_vertical=150
app.status="加速出口接陡坡 · 槽底 Y 3.00 · 两侧槽沿 Y 3.32";app.refresh_ui()
for i in range(12):await process_frame
RenderingServer.force_draw(false);RenderingServer.force_sync()
root.get_texture().get_image().save_png(ProjectSettings.globalize_path("res://playtest/artifacts/styled/surface_alignment.png"))
quit()