Add focus function
WREQI opened this issue · comments
Is your feature request related to a problem? Please describe.
The editor of three.js has an EditorControls and a focus function that can automatically and quickly locate the model
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response
Thanks for your request.
CameraControls already has fitToBox and fitToSphere.
Do you still need another feature?
@yomotsu What should I do if I need to be at a certain distance from the object instead of completely filling it, which means that the distance can be set?
There are several methods such as dolly()
and dollyTo()
, and also can be combined with fitToXXX()
.
Please read the docs for more details.
https://github.com/yomotsu/camera-controls?tab=readme-ov-file#dolly-distance-enabletransition-
https://github.com/yomotsu/camera-controls?tab=readme-ov-file#dollyto-distance-enabletransition-
Okay, thank you. @yomotsu
The controller in three.js editor can bi-directional link an indicator in the bottom right corner. If CameraControls is used, how can it correctly bi-directional link an indicator? Is there a good example?
a good example?
Did you check all the examples in the readme?
So far, there are no such examples, but you can try it yourself with CameraControls.
Sorry, but please read and check the docs for further details.
If you wish further support, please consider becoming a patron: the "You may get additional support" tier.