feat: 切换至滚动阻力运行模型并更新资产、编辑器与验证

- 物理规则:现行模型仅保留滚动阻力耗能与恢复系数碰撞,风力、空气阻力、静摩擦、动摩擦不再参与运行;确认三球质量 60/330/约890 kg 及水密度、流阻参数
- 定向加速改为真实顶面接触触发的一次性 +5 m/s 速度事件,模型新增渐进式 U 形导槽出口
- 更新球体、滑槽、水/冰/墙、球洞模型与 storybook 目录、物理、实体配置
- 工坊摆放、编辑器、运行适配与检查脚本同步;删除过时的 baseline 三组检查
- 新增谜题设计参考文档、关卡草稿与本轮实验产物
This commit is contained in:
Yanchen
2026-12-05 10:37:31 +08:00
parent d1141b04c7
commit bf6c355fa6
132 changed files with 13205 additions and 1838 deletions
+14 -3
View File
@@ -51,13 +51,23 @@ func ports(record: Dictionary) -> Array:
result.append({"surface":center+basis*local,"normal":basis*outward})
return result
func boost_mouth(record: Dictionary) -> Dictionary:
var bounds: AABB = lib.record_bounds(record)
var basis := Basis(Vector3.UP, -int(record.quarter)*PI/2)
var normal: Vector3 = basis * lib.vector(lib.catalog[record.kind].arrowDirectionGodot)
var surface := bounds.get_center() + normal*.5
surface.y = record.position.y + lib.catalog[record.kind].baseHeight
return {"surface":surface, "normal":normal}
func connections(candidate: Dictionary,neighbors: Array) -> Array:
var matches: Array=[]
for own in ports(candidate):
var is_boost: bool = candidate.kind == "directional_boost"
var own_ports: Array = [boost_mouth(candidate)] if is_boost else ports(candidate)
for own in own_ports:
for other in neighbors:
if other.id==candidate.id:continue
var targets: Array=ports(other)
if other.kind in ["wall","directional_boost","ice","goal_hole"]:
if not is_boost and other.kind in ["wall","directional_boost","ice","goal_hole"]:
# Flat solid tops and the goal rim have no groove. Use the edge at
# this lane, not the block bottom or the decorative arrow mesh.
var bounds: AABB=lib.record_bounds(other)
@@ -67,7 +77,8 @@ func connections(candidate: Dictionary,neighbors: Array) -> Array:
var lateral:=2 if axis==0 else 0
var edge: float=bounds.position[axis] if n[axis]>0 else bounds.end[axis]
if absf(p[axis]-edge)<.001 and p[lateral]>bounds.position[lateral]+.001 and p[lateral]<bounds.end[lateral]-.001:
targets.append({"surface":Vector3(p.x,bounds.end.y,p.z),"normal":-n})
var rolling_y: float = boost_mouth(other).surface.y if other.kind=="directional_boost" else bounds.end.y
targets.append({"surface":Vector3(p.x,rolling_y,p.z),"normal":-n})
for target in targets:
var delta: Vector3=target.surface-own.surface
if Vector2(delta.x,delta.z).length()>.001 or own.normal.dot(target.normal)>-.999:continue