Replies: 2 comments 4 replies
-
Basically, store the current position and rotation and check if it's the same on the next frame. You can do that in a Here is an example. I couldn't quite get the rotation measurement working. But that only matters at the poles if the camera is looking straight up or down. But this should give you the overall idea |
Beta Was this translation helpful? Give feedback.
3 replies
-
I have posted a issue in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm trying to change the scale of some geometry based on how close the camera is to the object.
Before I can do that I need to know when the camera is moving and only then trigger the scaling.
I'm using OrbitControls to navigate around which provides an onChange event I can use to detect when the camera is moving and set the isMoving state to true. My problem is that by using onChange I don't know when the camera stops moving so I can set isMoving to false.
Any ideas on how it can be done?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions