Skip to content

@react-vertex/orbit-camera@2.14.0

Choose a tag to compare

@sghall sghall released this 05 Jun 14:31
· 148 commits to master since this release
  • Add ability to toggle rotation and dolly functions.
  • Set userRotate to false to disable rotation in x and y (orbit camera only rotates in x and y).
  • Set userRotateX to false to disable only rotation in x.
  • Set userRotateY to false to disable only rotation in y.
  • Set userDolly to false to disable dolly function.

Example:

 const camera = useOrbitCamera(55, width / height, 1, 5000, c => {
   c.setPosition([0, 0, 500])
   c.userRotate = false
 })