Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dolly to cursor does not maintain steady speed #499

Open
WebPixel-it opened this issue Apr 16, 2024 · 1 comment
Open

Dolly to cursor does not maintain steady speed #499

WebPixel-it opened this issue Apr 16, 2024 · 1 comment

Comments

@WebPixel-it
Copy link

Describe the bug

The InfinityDolly is very helpful and has the functionality I need to orbit a model like orbit controls, but also navigate inside it like a drone. It's working as needed but can I keep dollySpeed steady?

If I'm dollying to cursor from x -15 to x +15 with the target at 0 ( or any point in between), it is steady until it reaches the target, then it speeds up to cursor very quickly.

To Reproduce

Steps to reproduce the behavior:

  1. Go to x -15
  2. Turn model to view x axis at 45 degrees and point to x +15
  3. Scroll to cursor
  4. Dolly maintains a steady speed specified on settings until it reaches the target (near 0), then jumps to other end of the x axis very quickly

Version 2.2.1

Code

cameraControls.minDistance = 4;
cameraControls.maxDistance = 25;
cameraControls.dollyToCursor = true;
cameraControls.infinityDolly = true;
cameraControls.dollySpeed = 0.7;

Live example

No response

Expected behavior

Steady speed on scroll

Screenshots or Video

No response

Device

Desktop

OS

Windows

Browser

Firefox

@sguimmara
Copy link

Might be related to #497

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants