Module contract 模块约定
Meters, Y-up, origin at ground contact. animate is called every frame; dispose when the model is replaced. Relative imports such as ./lib/rig.js resolve against the examples/ folder of this site.
单位为米,Y 轴向上,原点位于接地点。每帧调用 animate,切换模型时调用 dispose。./lib/rig.js 这类相对导入会按本站 examples/ 目录解析。
Pasted, URL-loaded and generated code runs in a sandboxed frame (no access to this page, its storage or the network); the official examples are imported directly. 粘贴、URL 与 AI 生成的代码在沙箱 iframe 中运行,无法访问本页面、本地存储与网络;官方示例直接导入。
- Orbit 旋转
- Drag · one finger
- Zoom 缩放
- Wheel · pinch
- Pan 平移
- Right-drag · two fingers
Each model is one merged, skinned mesh built once and instanced with a skeleton. Geometry uses lofts, lathe turns, bevelled plates and tubes, with no boolean operations.
每个模型只构建一次:合并为单个蒙皮网格,再通过骨架实例化。几何体由放样、车削、倒角板与管件组成,不使用布尔运算。
The examples are adapted from enemies of the browser FPS 腓尼基战役: the spider and the sentry from the Act 2 lab, the gull and the hound from the Act 1 harbor. The fifth, the Forge Warden 熔炉守卫, is the guardian of the Act 3 deep foundry, built from its character sheet.
Three.js r170 · Apache-2.0