Module scene

Source
Expand description

Generational scene hierarchy, exact matrix composition, prefabs, a bounded binary scene format, and skeleton skin palettes. No renderer or asset loader.

Scene::resolve_path and Scene::path_from use literal name components and reject ambiguous sibling names. Paths describe the current hierarchy; retain a NodeId when identity must survive reparenting.

Structs§

Joint
Node
NodeId
Generational handle scoped to the scene that created it. Handles from other scenes must not be mixed: their slot indices and generations can coincide. Reparenting preserves identity. Removing a subtree invalidates its handles, even if later nodes reuse the same slots or names. Decoding a scene remaps handles; a path is a fresh name lookup, not a persistent identity token.
Prefab
Scene
Skeleton
Transform

Enums§

SceneError
ScenePathError
Checked hierarchy lookup/inspection errors, separate from SceneError so existing scene mutation error matches remain compatible. Component indices are zero-based, relative to the supplied parent (or the scene’s roots).

Constants§

IDENTITY

Functions§

multiply
Column-major multiplication. Using matrices preserves shear from nonuniform parent scale followed by child rotation instead of approximating it as TRS.
transform_point

Type Aliases§

Matrix