NAME
tween — move the creature from one point to another, hopping
SYNOPSIS
tween(a, b, ms, arc, pose)
DESCRIPTION
Moves it along the straight line between the two points, eased, and lifts it on an arc that is highest half-way, one frame at a time.
PARAMETERS
a, b: the points [x, y, z]. ms: how long, in milliseconds. arc: the arc's height, in cubes (0.9 for a hop, 1.6 for a jump). pose: the pose on the way.
RETURN VALUE
A promise that settles on arrival.
INNER HELPERS
Defined inside it, and documented here: f.
SEE ALSO
SOURCE
AUTHOR
Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.
COPYRIGHT
© Computational Classnotes · CC BY-NC-SA 4.0
