lerp geometries between different vectors while using frameloop='demand' #2056
Unanswered
ashleymvanduzer
asked this question in
Q&A
Replies: 1 comment 1 reply
-
import { useThree, useFrame } from '@react-three/fiber'
const { invalidate } = useThree()
useFrame(() => {
if (isAnimating) {
// lerp here
invalidate()
}
}) |
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.
-
please excuse me for all the questions on this topic.
I understand how this example works: dynamic invalidate, but I can't figure out how to use frameloop='demand' while lerping a geometries position between two vectors. Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions