Skip to content

TransformControls ​

交互式变换控制器,安装后通过 app.$transformControls 访问。

用法 ​

ts
import { TransformControls } from '@threeuse/core/plugins'

app.use(TransformControls, { mode: 'translate' })
app.$transformControls.attach(mesh)

选项 ​

选项类型默认值说明
mode'translate' | 'rotate' | 'scale'—初始操作模式
space'local' | 'world'—坐标空间

Demo ​

模式:拖拽手柄变换物体

Released under the MIT License.