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

possible infinite dolly? #107

Closed
msemtd opened this issue Jul 9, 2020 · 3 comments
Closed

possible infinite dolly? #107

msemtd opened this issue Jul 9, 2020 · 3 comments
Labels

Comments

@msemtd
Copy link

msemtd commented Jul 9, 2020

When using dolly it is limited to approaching the orbit target as would be with zoom. That limitation isn't how a real world dolly operation would behave. I'd like the ability to continue to dolly in the current direction. Is that something that could be added? Perhaps moving the target like the forward function but along the current vector.

@msemtd
Copy link
Author

msemtd commented Jul 9, 2020

I tried to implement this upon the sleep event but I can't work out the maths! I don't think it would work when using the mouse drag to dolly either.

@yomotsu
Copy link
Owner

yomotsu commented Jul 9, 2020

Since CameraControls is sort of orbit-control, dolly over the target is difficult to add.
Maybe you could use .moveTo() method with the front direction.

CameraControls could provide the front direction for that.

@msemtd
Copy link
Author

msemtd commented Jul 15, 2020

I guess I'll need to fork the project for that -- or it might be possible to intercept a mouse event

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

No branches or pull requests

2 participants