CameraLerp

ABSTRACT

A follower animation that smoothly interpolates the camera variable from its follower state to its iterator state, avoiding gimbal lock. After the animation, the camera follower is set to the camera iterator

PARAMETERS
camera&The scene camera variable
timethe amount of seconds the lerp should take place over
timethe 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.
RETURN

An animation that lerps the camera in a manner avoiding gimbal lock

DECLARATION
func CameraLerp(camera&, [config] {[main] {time}, [parameterized] {time, unit_map(u)}})