@react-vertex/orbit-camera@2.14.0
·
148 commits
to master
since this release
- Add ability to toggle rotation and dolly functions.
- Set
userRotateto false to disable rotation in x and y (orbit camera only rotates in x and y). - Set
userRotateXto false to disable only rotation in x. - Set
userRotateYto false to disable only rotation in y. - Set
userDollyto false to disable dolly function.
Example:
const camera = useOrbitCamera(55, width / height, 1, 5000, c => {
c.setPosition([0, 0, 500])
c.userRotate = false
})