Skip to main content

Module morph

Module morph 

Source
Expand description

Morphing one body into another, as the old Morph mod did: the faces of the first slide, turn and stretch into the faces of the second, while the first’s skin fades into the second’s.

Faces pair up in the order the models give them (cube by cube, as their parts come); faces one side has more of grow from — or shrink into — the middle of the other body.

Functions§

blend
Writes from turning into to at t (0: all from, 1: all to) into ops, in entity space — both as crate::wire::Captures give them. Smooth t (an ease) is the caller’s choice.
ease
t eased in and out (smoothstep) — how a morph looks natural.