Code Monkey home page Code Monkey logo

Comments (4)

Turtleted21 avatar Turtleted21 commented on June 2, 2024 1

I think I have the same problem as you with chain() :
#643

from tween.js.

vis-prime avatar vis-prime commented on June 2, 2024 1

I think I have the same problem as you with chain() : #643

so the initial mesh.position is 0,0,0 & the second tween is starting from 0,0,0 instead of where the first tween ended at , correct ?

then yea, its a similar issue

from tween.js.

Turtleted21 avatar Turtleted21 commented on June 2, 2024 1

I think I have the same problem as you with chain() : #643

so the initial mesh.position is 0,0,0 & the second tween is starting from 0,0,0 instead of where the first tween ended at , correct ?

then yea, its a similar issue

Yes, I added a glitch demo with the bug.

from tween.js.

trusktr avatar trusktr commented on June 2, 2024

Hey guys! This is the new expected behavior (was changed a while back). It makes the tween able to repeat exactly the same animation each time.

The previous behavior was sort of accidental and would not repeat the desired animation every time.

We have an issue for implementing that here: #522

You can see in the first example there (the "51 lines" example) one way to work around this is to make separate new Tweens for each part of the animation, that way they always start with latest values of the object passed into new Tween.

Also here's another way to solve it when the use case is similar to #643: #643 (comment)

Closing as duplicate of #522 (please bring any ideas you may have there 😃)

from tween.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.