Choose the right asset path / 选择合适的资产路径
Native asset contract / 原生资产约定
每个独立物件应放在一个THREE.Group 根节点下。根节点负责场景位置,子节点只使用局部坐标。
Place each independent object under one THREE.Group root. The root owns scene placement; children use local coordinates.
- 使用房间现有的米制比例;落地物件以局部
Y = 0为底面。 / Use the room’s meter-scale proportions; ground standing objects at localY = 0. - 默认使用
MeshStandardMaterial,让物件响应作者时区驱动的昼夜光照。 / Default toMeshStandardMaterialso the object responds to author-timezone lighting. - 代码中的旋转使用弧度;Studio 保存的旋转使用角度。 / Use radians in factory code; Studio persists rotations in degrees.
- 对重要实体开启阴影;不要让大量微小零件投影。 / Enable shadows for important solids, not for many tiny details.
- 每件简单资产尽量少于 30 个 mesh 和 25,000 个三角面。 / Keep a simple asset under roughly 30 meshes and 25,000 triangles.
- 重复零件共享 geometry/material;超过八个实例时考虑
InstancedMesh。 / Share geometry and material for repeated parts; considerInstancedMeshabove eight repetitions.
Decorative companions / 附属装饰
如果新装饰属于一个现有内置物件,把它添加到该物件的根组中。这样它会自动继承 Studio 对拥有者的位置、旋转和缩放覆盖。 If a decoration belongs to an existing built-in object, add it to that object’s root group. It will automatically inherit the owner’s Studio position, rotation, and scale overrides. 不要仅仅为了让附属装饰可移动就新增CoreAssetId。只有真正需要独立内容、深链接、索引入口和键盘路径时,才应新增交互 ID。
Do not add a CoreAssetId merely to make a companion prop movable. Add an interactive ID only when the object genuinely needs independent content, a deep link, an index entry, and a keyboard path.
Interaction and animation / 交互与动画
纯装饰不要调用addHitbox() 或 addSignal()。复用现有章节语义时,使用该章节已有 ID:
Do not call addHitbox() or addSignal() for decoration-only objects. When extending an existing chapter, retain that chapter’s current ID:
animated 队列,不要创建第二个 renderer 或 animation loop。使用 delta 累积运动,使用 elapsed 计算有界摆动,并保留 reduced-motion 行为。
Add animation to the scene’s existing animated queue. Do not create a second renderer or animation loop. Use delta for accumulated motion and elapsed for bounded oscillation, while preserving reduced-motion behavior.
Ask a coding agent / 交给 coding agent
仓库内的skills/living-index-native-assets/SKILL.md 定义了这个工作流。你可以直接描述形状、尺寸、材质、摆放位置、是否需要动画,以及它属于独立装饰还是某个现有物件。
The repository’s skills/living-index-native-assets/SKILL.md defines this workflow. Describe the shape, scale, materials, placement, optional animation, and whether the result is independent decoration or belongs to an existing object.