effect-motion
API Referenceeffect-motionNamespacesEntityType aliases

Vec3

type Vec3 = typeof Vec3.Type;

Type Alias: Vec3

type Vec3 = typeof Vec3.Type;

Defined in: packages/motion/src/Entity.ts:34

A point or offset in 3D space.

Remarks

Scene coordinates with depth: x right, y UP (the mathematical convention), z toward the viewer, origin at the viewport center — a right-handed frame. Every axis defaults to 0, so vec3({ x: 100 }) is a valid horizontal offset.

At z = 0 content renders exactly as flat 2D. Non-zero z is only meaningful under a perspective camera, where it changes apparent size and parallax.

On this page