fix(level-builder): 锚点补偿+旋转修复+天空盒+解析器去重
- asset_mapping: 38种BSP资产实测锚点+pivot_offset_xy自动补偿 - scene_builder: Rotator改关键字参数修正旋转轴映射 - scene_builder: spawn前XY锚点补偿(支持Yaw旋转) - scene_builder: 新增ExponentialHeightFog+大气效果后处理 - build_cmdline: 构建后自动添加雾+GameMode+DirectionalLight大气 - build_guide_parser: 去重+全局地面+旋转列名兼容+边界段范围修正 - BarrierWall实际尺寸修正(60×210非20×100) - 搭建指南: 全局地面中心坐标+西边界旋转统一+院门改双开门
This commit is contained in:
@@ -164,7 +164,13 @@ def parse_location(text: str) -> tuple[float, float, float]:
|
||||
|
||||
|
||||
def parse_rotation(text: str) -> tuple[float, float, float]:
|
||||
"""解析旋转字符串 '(P,Y,R)' 为三元组(度数)。"""
|
||||
"""解析旋转字符串 '(P,Y,R)' 为三元组(度数)。
|
||||
|
||||
处理箭头注释格式:'(0,0,0) → Yaw=90°' 只取括号内部分。
|
||||
"""
|
||||
if not text:
|
||||
return (0.0, 0.0, 0.0)
|
||||
# 先尝试提取括号内的旋转值,忽略箭头后面的注释
|
||||
return parse_location(text)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user