Closed brettmorrisonAO5ANNEX closed 7 months ago
I might need to update how I am animating the trackers altogether to include an actual 't' value. Doing so might make updating the positions of each tracker easier since they are all moving based on the same 't' value.
If I use the 't' value from a fixed-length line (along one segment of the control polygon), I can map it to a position along the length of even a changing length line (like the 'recursive interpolations'). Regardless of if the line changes length, 't' represents the proportional distance along the line so it will map properly.
Now I just need to figure out how to implement this the best way. Currently, there isn't really a global 't' to use, so I will need to figure that out.
Instead of using a global t, I have decided to create an actual line representing the Bezier curve and then animate the tracker moving along that line since I needed to have the line eventually anyway, I think this is a much better approach.
Currently the tracker for 'recursive interpolations' is animating along its original direction (RED) vector (makes sense the way I implemented the
LIVis
class since the direction vector is only calculated once at initialization). I need it to animate along the tracker line (YELLOW) instead, which may require adding an updater to the direction vector to update as the lines move.