Skip to content

相机位置范围

将相机的位置限制在一个范围内

示例

js
import { createThreeUseApp } from 'threeuse'
import { cameraRange } from 'threeuse/plugin'
const app = createThreeUseApp()
app.use(cameraRange, options?)

说明

通过调用 createThreeUseApp 创建的实例对象上的 use 方法安装插件

options

参数说明默认值
cameraRange限制的范围Range

Range

参数说明默认值
xx轴限制的范围{ min: -1950, max: 1950 }
yy轴限制的范围{ min: 1, max: 1950 },
zz轴限制的范围{ min: -1950, max: 1950 }

MIT Licensed.