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 Molten Goblin 熔火哥布林 is the winged cinder imp of the Act 3 deep foundry: its large forms are mesh, its scales and molten cracks are maps generated in memory. Forge Warden High 熔炉守卫 High is that foundry's guardian (W-02). Idle, walk, hammer, shield bash, slag and death play on this stage, and the same six clips are on its inspection page.
示例改编自浏览器 FPS 腓尼基战役中的敌人:巡蛛与哨桩来自第二幕实验室,飞鸥与猎犬来自第一幕港口。熔火哥布林是第三幕深层熔炉的飞袭小妖,大体为网格,鳞片与熔缝由内存中的贴图生成。熔炉守卫 High 是这座熔炉的守卫(W-02):待机、行走、重锤、盾击、排渣与倒下可在本页播放,检视页亦有同样的六段动作。
Three.js r170 · Apache-2.0