在glTF extras保存业务ID,分清碰撞标记与真实物理
本页展示随包原生输入和验收参考。目标产品运行状态:未运行。表格与图片不代表产品已经生成的结果。
input.csv / practice-data.json


本课实际输入字段
| node | product_id | part_id | source_identity | collider_hint | physics_created |
|---|---|---|---|---|---|
| body | LT-03 | body | author-mesh | box | not automatic |
| cap | LT-03 | cap | author-mesh | cylinder | not automatic |
| label | LT-03 | label | author-mesh | none | not automatic |


登记碰撞意图
reference.csv:作者验收映射,不是目标API回包
| item | expected | identity |
|---|---|---|
| 身份 | part_id稳定唯一 | author_acceptance_reference |
| extras | 由应用约定消费 | author_acceptance_reference |
| 物理 | hint不自动生成碰撞体 | author_acceptance_reference |
实际原生GLB读回
{
"measurements": {
"physicsCreated": false
},
"files": [
{
"file": "author-control.glb",
"bytes": 68384,
"extensionsUsed": [],
"animations": 0
}
]
}应当保留的约束
| item | expected | identity |
|---|---|---|
| 身份 | part_id稳定唯一 | author_acceptance_reference |
| extras | 由应用约定消费 | author_acceptance_reference |
| 物理 | hint不自动生成碰撞体 | author_acceptance_reference |
故意构造的错误样例
| case | bad_value | why_reject |
|---|---|---|
| 索引依赖 | node0必为瓶身 | 重排后错位 |
| 物理误导 | extras hint=真实碰撞已创建 | 核心glTF未定义此物理组件 |
先保存真实产品输出,再逐项对照。actualOutput / actualResult 在未执行时保持 not_run,不能把这里的期望值复制成已测结果。