Skip to content

Releases: yomotsu/camera-controls

v2.3.2

14 Mar 14:42
cd3f452

Choose a tag to compare

2.3.2 (2023-03-14)

Bug Fixes

  • updateCameraUp doesnt update _yAxisUpSpaceInverse (#391) (cd3f452)

v2.3.1

22 Feb 15:46
2793b17

Choose a tag to compare

2.3.1 (2023-02-22)

Bug Fixes

v2.3.0

20 Feb 13:27
5c166a2

Choose a tag to compare

2.3.0 (2023-02-20)

Bug Fixes

  • target should be immutable in smoothDamp (#375) (42a00de)

Features

v2.2.2

19 Feb 15:52
5546a53

Choose a tag to compare

2.2.2 (2023-02-19)

Bug Fixes

v2.2.1

10 Feb 13:31

Choose a tag to compare

#364 fix .enabled @abernier
#363 remove TouchEvent support
#362 enable context menu if mouse.right is NONE

v2.1.0

04 Feb 13:40

Choose a tag to compare

#357 Stop movement on drag start @yomotsu
#359 Improve smoothTime / draggingSmoothTime switching @yomotsu
#355 Exposing CameraControls.createBoundingSphere @abernier
fixed some bags

v2.0.1

29 Jan 02:28

Choose a tag to compare

#352 fix wheel zoom @yomotsu
#351 docs: typo for fitToBox @abernier
#350 updating r3f example @abernier

v2.0.0

28 Jan 13:40

Choose a tag to compare

V2 Migration Guide

camera-controls used to use simple damping for its smooth transition. camera-controls v2 now uses SmoothDamp.
one of the benefits of using SmoothDamp is, SmoothDamp transition can be controlled with smoothTime which is approximately the time it will take to reach the end position.
Also, the Maximum speed of the transition can be set with maxSpeed.

Due to the change, the following are needed.
(if you haven't changed dampingFactor and draggingDampingFactor in v1.x, nothing is needed)

deprecated

  • dampingFactor (use smoothTime instead)
  • draggingDampingFactor (use draggingSmoothTime instead)

added

  • smoothTime
  • draggingSmoothTime
  • maxSpeed

...That's it!


Other updates:

added lookInDirectionOf( x, y, z, enableTransition ): Look in the given point direction.

v1.38.2

28 Jan 12:52

Choose a tag to compare

fix: focal offset needed twice @yomotsu

v1.38.1

26 Jan 11:38

Choose a tag to compare

#343 expose hasEventListener @abernier