Replies: 3 comments
-
these are the versions I'm on |
Beta Was this translation helpful? Give feedback.
-
Here's an example of how infinityDolly works, this example also shows off the odd zoom behavior in part 2 of your question, and might be the culprit for part 3. If you intend to use this prop, you'll just have to take this into account. Also flagging:
|
Beta Was this translation helpful? Give feedback.
-
Hey @JamesMasino thanks for your answer. In the meantime I understood what infiniteDolly={true} is doing and why this overrules min and max distance. Regarding point 2: I am now using the camera controls from react three drei.. My solution was to pass an implementation of the CameraControls in which I override the dolly method. Basically I have limited dollying out to a certain distance from the center |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have problems with my CameraControls.
Although I set maxDistance to 5, I can still zoom out indefinitely
Issue1.webm
When I zoomed out relatively far, I cannot zoom in again
From second 12 to 27 I kept scrolling in but not much happend
Issue2.webm
When setting draggingSmoothTime to 0, the controls start to freeze randomly. I then have to use the mouse wheel and only then I can drag again.
Unfortunately, the mouse wasn't recorded but I think you can see that I'm moving around, then the scene seems to be stuck -> next I scroll a little bit and only then I can move again
Issue3.webm
This is the very basic setup
Beta Was this translation helpful? Give feedback.
All reactions