feat: 切换至滚动阻力运行模型并更新资产、编辑器与验证
- 物理规则:现行模型仅保留滚动阻力耗能与恢复系数碰撞,风力、空气阻力、静摩擦、动摩擦不再参与运行;确认三球质量 60/330/约890 kg 及水密度、流阻参数 - 定向加速改为真实顶面接触触发的一次性 +5 m/s 速度事件,模型新增渐进式 U 形导槽出口 - 更新球体、滑槽、水/冰/墙、球洞模型与 storybook 目录、物理、实体配置 - 工坊摆放、编辑器、运行适配与检查脚本同步;删除过时的 baseline 三组检查 - 新增谜题设计参考文档、关卡草稿与本轮实验产物
This commit is contained in:
@@ -50,7 +50,7 @@ func run() -> void:
|
||||
var launcher:Dictionary=app.records[app.index_for("launcher")]
|
||||
var bounds:AABB=lib.record_bounds(launcher)
|
||||
var start_ball:Vector3=app.balls[0].position
|
||||
check("L%d_ball_on_boost"%(index+1),launcher.kind=="directional_boost" and absf(start_ball.y-bounds.end.y-.32)<.0001 and absf(start_ball.x-bounds.get_center().x)<.5)
|
||||
check("L%d_ball_on_boost"%(index+1),launcher.kind=="directional_boost" and absf(start_ball.y-launcher.position.y-lib.catalog.directional_boost.baseHeight-.32)<.0001 and absf(start_ball.x-bounds.get_center().x)<.5)
|
||||
check("L%d_has_no_support_walls_or_grid_colliders"%(index+1),app.records.filter(func(r):return r.kind=="wall").all(func(r):return r.id=="stop") and app.slots_view.find_children("*","CollisionObject3D",true,false).is_empty() and app.ground_view.find_children("*","CollisionObject3D",true,false).is_empty())
|
||||
# Empty virtual grids cannot catch a sphere or satisfy physics support.
|
||||
var query:=PhysicsShapeQueryParameters3D.new();var shape:=SphereShape3D.new();shape.radius=.12
|
||||
@@ -74,7 +74,7 @@ func run() -> void:
|
||||
var boosts:Array=app.balls[0].boost_controller.events
|
||||
var gain:=0.0
|
||||
if boosts.size()==1:gain=Vector2(boosts[0].after.x,boosts[0].after.z).length()-Vector2(boosts[0].before.x,boosts[0].before.z).length()
|
||||
check("L%d_boosted_floating_run_%d"%[index+1,repeat+1],app.solved and boosts.size()==1 and boosts[0].blockId=="launcher" and absf(gain-5)<.00001 and app.pieces.map(func(p):return p.global_transform)==originals,{"time":app.elapsed,"boosts":boosts.size(),"speed_gain":gain})
|
||||
check("L%d_boosted_floating_run_%d"%[index+1,repeat+1],app.solved and boosts.size()==1 and boosts[0].blockId=="launcher" and absf(gain-app.Booster.SPEED_GAIN)<.00001 and app.pieces.map(func(p):return p.global_transform)==originals,{"time":app.elapsed,"boosts":boosts.size(),"speed_gain":gain})
|
||||
var file:=FileAccess.open("res://playtest/artifacts/tutorial/floating_report.json",FileAccess.WRITE)
|
||||
file.store_string(JSON.stringify({"passed":results.size()-failures,"failed":failures,"engine":Engine.get_version_info().string,"results":results}," "));file.close()
|
||||
quit(1 if failures else 0)
|
||||
|
||||
Reference in New Issue
Block a user