fix(assets): v01白模关卡重建——238Actor锚点补偿+天空盒
关卡文件更新:雾+大气+锚点补偿后的238个Actor Agent记忆:BSP锚点类型+Rotator关键字参数+V01修复记录
This commit is contained in:
@@ -20,6 +20,17 @@ actor.set_actor_rotation(unreal.Rotator(pitch, yaw, roll), False)
|
||||
**Why:** UE5.7 改了 API 签名,positional argument `teleport_physics` 变为必需
|
||||
**How to apply:** 所有 `set_actor_rotation()` 调用都加第二个参数 `False`
|
||||
|
||||
### `unreal.Rotator` 位置参数顺序不是 (Pitch, Yaw, Roll)
|
||||
```python
|
||||
# ❌ 错误:位置参数顺序非 P,Y,R,Yaw=90 会落到 Pitch(Y显示)
|
||||
actor.set_actor_rotation(unreal.Rotator(0, 90, 0), False)
|
||||
|
||||
# ✅ 正确:用关键字参数避免歧义
|
||||
actor.set_actor_rotation(unreal.Rotator(pitch=0, yaw=90, roll=0), False)
|
||||
```
|
||||
**Why:** UE5.7 Python `unreal.Rotator` 的位置参数顺序与关键字参数名不一致,第二个位置参数映射到 Pitch 而非 Yaw
|
||||
**How to apply:** 所有 `unreal.Rotator()` 调用必须使用关键字参数 `pitch=, yaw=, roll=`
|
||||
|
||||
### `-ExecutePythonScript` 模式下 CWD 不是项目目录
|
||||
```python
|
||||
# ❌ 错误:CWD 是引擎 Binaries 目录
|
||||
|
||||
Reference in New Issue
Block a user