Open jcheese1 opened 1 month ago
Thank you for your report.
I have checked it, and everything seems correct.
The moveTo()
function adjusts the center position, while the dolly()
function changes the distance to the center.
Please try using console.log(cameraControls.getTarget()) after calling moveTo(). It should return the correct position.
@yomotsu thank you for checking!
The moveTo() function adjusts the center position, while the dolly() function changes the distance to the center.
did not know this, thank you. Is there a way to make it move to moveTo (3,5,2)
no matter where you dolly?
I think you can simply call dollyTo( 0 )
at the same time
@yomotsu I can, but the transition is not smooth. I want a smooth transition from the current dolly position to moveTo (3,5,2)
if that is possible?
Describe the bug
moveTo moves to an incorrect position after dolly. please see the attached video.
To Reproduce
Steps to reproduce the behavior:
moveTo (3,5,2)
. Correctly moves to the right position.Reset
and click ondolly -1
a few times, and click onmoveTo (3,5,2)
again. the z position is not correct.Code
No response
Live example
No response
Expected behavior
Properly moves to the vector defined in
moveTo
regardless of dolly position.Screenshots or Video
https://github.com/user-attachments/assets/6b7ca49c-d12b-4c6c-9eed-bc952e76aa96
Device
Desktop
OS
MacOS
Browser
Chrome