Skip to content

Releases: yomotsu/camera-controls

v2.0.0

28 Jan 13:40
Compare
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
Compare
Choose a tag to compare

fix: focal offset needed twice @yomotsu

v1.38.1

26 Jan 11:38
Compare
Choose a tag to compare

#343 expose hasEventListener @abernier

v1.38.0

22 Jan 15:01
Compare
Choose a tag to compare

#338 #339 add connect() and disconnect() methods @abernier @yomotsu

v1.37.6

19 Jan 09:09
Compare
Choose a tag to compare

#336 Apply polar angle constraints in the setTarget method @virgilbugnariu

v1.37.5

11 Jan 05:08
Compare
Choose a tag to compare

#331 Fix state comparison @dsafa @yomotsu

v1.37.4

20 Nov 04:18
Compare
Choose a tag to compare
1.37.4

v1.37.3

12 Oct 06:41
Compare
Choose a tag to compare

fix #310 saveState should save _focalOffset0

v1.37.2

17 Sep 14:55
Compare
Choose a tag to compare
1.37.2

v1.37.1

16 Sep 04:21
Compare
Choose a tag to compare
1.37.1