paper-motion

Orbit

orbit

A 3D camera moves around layers set at different depths.

Install
$ npx paper-motion add orbit

Copies the code to moves/ in your project, yours to edit.

Tune it, then add it to your kit
0.0s
Parameters
duration
yaw
from
to
pitch
from
to
dolly
from
to
curve
import { orbit } from './moves/orbit.js';

// in s.update(t)
orbit(world, t);
Defaults

Notes

  • A 3D camera around a world whose children sit at different translateZ. Ranges are [from, to].
  • Children of world sit at different translateZ; the stage needs a perspective.

Spec

Id
orbit
Type
Camera and energy
Version
1.0.0
Engine
>=0.2.0
License
MIT

Related