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 code runs in this page. Only load code you trust. 粘贴的代码会在本页面执行,请只加载可信代码。
- 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 two examples are adapted from Act 2 lab enemies of the browser FPS 腓尼基战役.
Three.js r170 · Apache-2.0