feat: 切换至滚动阻力运行模型并更新资产、编辑器与验证
- 物理规则:现行模型仅保留滚动阻力耗能与恢复系数碰撞,风力、空气阻力、静摩擦、动摩擦不再参与运行;确认三球质量 60/330/约890 kg 及水密度、流阻参数 - 定向加速改为真实顶面接触触发的一次性 +5 m/s 速度事件,模型新增渐进式 U 形导槽出口 - 更新球体、滑槽、水/冰/墙、球洞模型与 storybook 目录、物理、实体配置 - 工坊摆放、编辑器、运行适配与检查脚本同步;删除过时的 baseline 三组检查 - 新增谜题设计参考文档、关卡草稿与本轮实验产物
This commit is contained in:
@@ -145,14 +145,15 @@ func run() -> void:
|
||||
var name: String=kind+("_rolling" if rolling else "_sliding")
|
||||
measurements.braking[name]={"wall":wall,"ice":ice}
|
||||
check("wall_quick_stop_"+name,wall.speedMps<.1 and wall.stopSeconds>0 and wall.stopSeconds<1.2 and wall.distanceM<1.8,wall)
|
||||
check("zero_native_friction_"+name,is_zero_approx(wall.nativeFriction) and is_zero_approx(ice.nativeFriction))
|
||||
check("ice_remains_slippery_"+name,ice.distanceM>wall.distanceM+2 and ice.speedMps>1.5,ice)
|
||||
# Wall side faces also select the same rough contact material.
|
||||
# A loaded wall face brakes tangential travel with zero native friction.
|
||||
for kind in TYPES:
|
||||
await clear();piece("wall",Vector3.ZERO)
|
||||
var body=ball(kind,Vector3(.802,.5,0));body.gravity_scale=0
|
||||
await frames(3);body.freeze=false;body.constant_force=Vector3(-body.mass*9.81,0,0);body.linear_velocity=Vector3(0,0,1)
|
||||
await frames(30)
|
||||
check("wall_side_uses_high_friction_"+kind,body.active_surface=="wall" and body.physics_material_override.friction>=.9 and absf(body.linear_velocity.z)<.6,{"speedZ":body.linear_velocity.z,"surface":body.active_surface})
|
||||
check("loaded_wall_side_uses_only_rolling_resistance_"+kind,body.active_surface=="wall" and is_zero_approx(body.physics_material_override.friction) and absf(body.linear_velocity.z)<.6,{"speedZ":body.linear_velocity.z,"surface":body.active_surface})
|
||||
await clear()
|
||||
# Real editor registry, flow rendering, ray selection, serialization, reset.
|
||||
var app=load("res://designer/scenes/workshop.tscn").instantiate();root.add_child(app);await frames(3)
|
||||
|
||||
Reference in New Issue
Block a user