Flattens the scene graph, leaving Nodes with
Meshes, Cameras, and other attachments
as direct children of the Scene. Skeletons and their
descendants are left in their original Node structure.
Animation targeting a Node or its parents will
prevent that Node from being moved.
Flattens the scene graph, leaving Nodes with Meshes, Cameras, and other attachments as direct children of the Scene. Skeletons and their descendants are left in their original Node structure.
Animation targeting a Node or its parents will prevent that Node from being moved.
Example:
import { flatten } from '@gltf-transform/functions'; await document.transform(flatten());