Skip to content

Best practice for one off animations #1704

Answered by drcmda
ashleymvanduzer asked this question in Q&A
Discussion options

You must be logged in to vote

use frame+lerp is the lightest it can possibly get. use frame is nothing more than a function call inside the render loop and lerp is only this: v0*(1-t)+v1*t. springs are a lot more effort to calculate (but look better). you can also check out THREE.MathUtils.damp which is also super fast but might look better than lerp.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by ashleymvanduzer
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