Transform
ABSTRACT
A follower animation that interpolates between the follower and iterator based only on the points of the meshes. That is, no type information is necessary
IMPORTANT ELEMENT
Transform is a very commonly used follower animation
REMARK
Transform is generally useful when you need to transform between unrelated obejcts (e.g. square to circle) where lerp wouldn't be applicable. It's typically somewhat faster than lerp as well
REMARK
If you want to only transform a subset, take a look at TransformSubset
PARAMETERS
meshes& | The meshes that this animation will apply to |
time | the amount of seconds the lerp should take place over |
time | the amount of seconds the lerp should take place over |
unit_map(u) | Defaults to smooth(u). If provided, it is essentially a rate function that controls the timing of this animation. It receives normalized time from 0 to 1 and returns a normalized time from 0 to 1. |
path_arc | Defaults to the zero vector. If provided, it should be a rotation vector whose magnitude is how much rotation should take place (i.e., how much deviation from a straight line), and the direction is the axis of rotation. See Arrow for more information on how a path arc works |
RETURN
An animation that interpolates between the follower and iterator using point information alone. After the animation is executed, all followers are set to the value of their iterators.
DECLARATION
func Transform(meshes&, [config] {[main] {time}, [parameterized] {time, unit_map(u), path_arc}})