Skip to content
Discussion options

You must be logged in to vote
useFrame((state, delta) => {
 ...

calling state.clock.getDelta() flushes the clock back to 0, that is how THREE.Clock works. this would not be scalable if you have multiple components. this is why useFrame gives you a delta which is valid for the current frame and accessible by all components.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ChrisCrossCrash
Comment options

Answer selected by ChrisCrossCrash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants