effect-motion
API ReferencerendererNamespacesEntityRendererInterfaces

Transform

A leaf's full composed transform: every ancestor's translate/rotate/scale

Interface: Transform

Defined in: packages/renderer/src/EntityRenderer.ts:59

A leaf's full composed transform: every ancestor's translate/rotate/scale applied over its own, in scene space.

Remarks

Planar renderers place their object from quaternion and scale (plus Leaf.world for the position); skeletal renderers (Line, Path) map each local point through matrix. The matrix is exact; scale is the per-axis product down the tree, so a non-uniformly scaled parent over a rotated child drops the shear — shear is not expressible (see the entity-transform spec).

Properties

matrix

readonly matrix: Matrix4;

Defined in: packages/renderer/src/EntityRenderer.ts:61

maps entity-local points (offsets from position) to scene space


quaternion

readonly quaternion: Quaternion;

Defined in: packages/renderer/src/EntityRenderer.ts:63

composed orientation: ancestors' rotations, then the entity's own


rotated

readonly rotated: boolean;

Defined in: packages/renderer/src/EntityRenderer.ts:71

Whether any rotation applies, the entity's own or an ancestor's. An unrotated planar shape billboards; a rotated one is a real oriented plane in the world.


scale

readonly scale: Vector3;

Defined in: packages/renderer/src/EntityRenderer.ts:65

composed per-axis scale: the product of every ancestor's and its own

On this page