Hey guys, im completely gsap newbie and need urgently help on a very time critical project.
I try to accomplish to let some objects "fly" into one central object, which is also moving. So my flying objects need to grab the actual position of the central object from time to time and update their motion. In my codepen, the green ball shows my actual movement. It apears, moves to the square (central object) and disappears to start again. The square is moving and the red ball illustrates, what i want to accomplish. It knows the knew position and can move over there and disappears also.
So my ball is all the time comming up, moving to central and disappears in a loop. The central is moving "randomly" so it have to get calculated.
I got inspired by this one: https://codepen.io/osublake/pen/JMvVyo but for any reason im not able to use it. seems like, there is a lib included (ThrowPropsPlugin), i would have to pay for, to use it but it seems that this lib is doing. the magic.
Is there any way, i can tell my ball, that it have to change the movement to get to its target?
Thx in advance
Chris
(Btw: i've spent hours, reading google and gsap forum for finding any similar but all answers were like "impossible" but some workarrounds were always available but nothing i could addept)