yomotsu / camera-controls

A camera control for three.js, similar to THREE.OrbitControls yet supports smooth transitions and more features.
https://yomotsu.github.io/camera-controls/
MIT License
2.05k stars 257 forks source link

.azimuthRotateSpeed .polarRotateSpeed has no effect on .rotate() method #533

Open 1337jick opened 3 months ago

1337jick commented 3 months ago

Describe the bug

Hi, ty for great product!

Whatever speed Im setting

        this.cameraControls.azimuthRotateSpeed = 2;
        this.cameraControls.polarRotateSpeed = 2;

It has no effect on this.cameraControls.rotate(this.mouse.x, this.mouse.y, true );

Speed changes only when dragging with mouse while .enabled === true

To Reproduce

Steps to reproduce the behavior:

  1. Set this.cameraControls.azimuthRotateSpeed = 2;
  2. Fire this.cameraControls.rotate(ANY_NUMBER, 0, true )
  3. See speed equal to .smoothTime speed

Code

No response

Live example

No response

Expected behavior

Speed for .rotate() when enableTransition === true is equal to .azimuthRotateSpeed .polarRotateSpeed settings

Screenshots or Video

No response

Device

No response

OS

No response

Browser

No response

yomotsu commented 3 months ago

Sorry for the confusion. The azimuthRotateSpeed parameter controls the speed intensity during mouse or touch dragging, and it does not affect the rotation methods.