Skip to content

v2.0.0

Compare
Choose a tag to compare
@yomotsu yomotsu released this 28 Jan 13:40
· 123 commits to dev since this release

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.