Breizo
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Breizo
-
-
Jack,
Thanks,
let me take a stab at a simple example to make sure I got the concept and come back to you.
-
Thanks for the quick answer and sorry I haven't been clear enough.
I have an array of triplets (x,y,t) where x and y are the coordinates and t is the time. Let's take as an example (0,0,0),(0,1,1),(1,1,10),(0,0,100). That means that at 0 sec I am at 0,0 then at 1 sec (0,1) and at 10 sec 1,1 to finish back at 0,0 at 100 sec.
Is there a way to implement this?
-
Just discovered GSAP, looks great!
I have looked into the Bezier plugin and I can't confirm if the time between each point is required to be constant.
I am dealing with timed points not necessarily equally timed, e.g. a sequence may have points at 0, 1, 2, 5, 7, 10, 15 sec.
Is there a way to deal with this constraint?
Thx
BezierPlugin timeline
in GSAP
Posted
Jack,
Hmm, thinking about it, I am afraid the concept will not work as I have 100s/1000s of segments.
I looked at the source code for the Bezier plugin and the setRatio function looks very promising.
Is the best practice to create a custom plugin based on Bezier where I override the function and inject the time table, or can I use Bezier and replace the setRatio function during the initialization phase?
In the function I can select the current segment based on the time table instead of the segments length.
Thanks