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 -10
View File
@@ -83,17 +83,21 @@ for kind,data in catalog['models'].items():
if authored:
bm=bmesh.new();bm.from_mesh(obj.data)
volume=abs(bm.calc_volume(signed=True));closed=all(e.is_manifold for e in bm.edges);bm.free()
correct=correct and closed and all(abs(d-1)<1e-6 for d in obj.dimensions)
if kind in ('wall','directional_boost'):
correct=correct and closed and (obj.dimensions-Vector(data['boundsBlender']['size'])).length<1e-6
if kind=='wall':
correct=correct and abs(volume-1)<1e-6
if kind=='directional_boost':
arrow=bpy.data.objects.get('ink_boost_arrow_fill')
correct=correct and arrow is not None
if arrow is not None:
points=[v.co for v in arrow.data.vertices]
tip=max(points,key=lambda v:v.x)
correct=correct and tip.x>0 and abs(tip.y)<1e-6 and all(1<v.z<1.01 for v in points)
check['arrowTipBlender']=list(tip)
elif kind=='directional_boost':
base=data['baseHeight']
radius=catalog['models']['straight']['grooveRadius']
mouth=[v.co for v in obj.data.vertices if abs(v.co.x-.5)<1e-6]
profile=[Vector((.5,radius*math.sin(i*math.pi/32),base+radius*(1-math.cos(i*math.pi/32)))) for i in range(-16,17)]
correct=correct and all(any((vertex-target).length<1e-6 for vertex in mouth) for target in profile)
arrow=bpy.data.objects.get('ink_boost_arrow_fill')
correct=correct and arrow is not None
if arrow is not None:
tip=max((v.co for v in arrow.data.vertices),key=lambda v:v.x)
correct=correct and tip.x>0 and abs(tip.y)<1e-6 and base<tip.z<base+.01
check['arrowTipBlender']=list(tip)
elif kind=='goal_hole':
tree=BVHTree.FromPolygons([v.co for v in obj.data.vertices],
[list(p.vertices) for p in obj.data.polygons])