TWEEN(3CUBES)Pyon manual · Kirakira Hop · Cubes (cubes.html)TWEEN(3CUBES)

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

placeHero(3cubes), ease(3cubes), run(3cubes)

SOURCE

src/cubes.html, line 241

AUTHOR

Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.

COPYRIGHT

© Computational Classnotes · CC BY-NC-SA 4.0