THREE.JS / MATH CONTRACT

Turn toward the target.

The official orientation study computes a target quaternion from Matrix4.lookAt, then either gradually rotates with Quaternion.rotateTowards or snaps with Object3D.lookAt. This lab makes the two orientation paths and their angular error observable.

ReadyWEBGL2 / ORIENTATION
Waiting for a target orientation.
mode
—
target
—
angular error
—
sample avg / p95
—

The official random target cadence, exact cone/camera/page composition, GUI presentation, and pixel fidelity are not copied. Native device/compiler/backend coverage, context-loss stress, and whole-example fidelity remain separate boundaries.

Sources: Quaternion · Object3D · official orientation example