Hey guys, have a question for you...
I'm building the infinite seamless draggable grid with pixi.js and everything is pretty much finished, just i am trying now to add a cherry on the top with the InertiaPlugin.
Please can you help me a bit with the implementation since it was not clear to me on the first look at your docs.
Btw, I have bought the plugin and it's successfully registered..
The function bellow is being called every time when pos value is changed. Can you let me know how can i adjust it to achieve the sweet inertia?
this.dragTween && this.dragTween.pause()
this.dragTween = gsap.to(this.movingContainer.position, 1, {
x: pos.x,
y: pos.y,
ease: 'Power4.easeOut',
onUpdate: () => {
// lot of calculations irrelevant for this question
}
})
Thank you very much for the help!