rtalon Posted June 16, 2020 Share Posted June 16, 2020 //unhooks the GSAP ticker gsap.ticker.remove(gsap.updateRoot); // Update gsap with PIXI ticker. PIXI.ticker.shared.add( (deltaTime) => { gsap.updateRoot(deltaTime ); }); Hello every body! I'm searching information about how update gsap ticker externally, in this situacion, I'm using PIXI engine. I want to use PIXI ticker like a "rendering director" then I add gsap into PIXI.ticker. What is wrong? I dont understand. Thanks! Link to comment Share on other sites More sharing options...
GreenSock Posted June 16, 2020 Share Posted June 16, 2020 GSAP's updateRoot() method expects a global time (in seconds), but you're passing a delta. Think of it more like setting the time() on the global (root) timeline. You might want to consider using GSAP's ticker to drive PIXI (the other way around). See https://greensock.com/docs/v3/GSAP/gsap.ticker 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now