TransformControlsTarget:
    | SceneObject
    | SceneMesh
    | {
        getMatrix(): number[] | Float64Array<ArrayBufferLike>;
        setMatrix(m: number[] | Float64Array<ArrayBufferLike>): void;
    }

Anything TransformControls.attach accepts as a manipulation target.

  • SceneObject — uses the matrix of the object's first SceneMesh. For multi-mesh objects, prefer the adapter form below.
  • SceneMesh — uses the mesh's matrix directly.
  • Adapter object — supplies a getMatrix / setMatrix pair, which lets the gizmo manipulate any caller-owned source of a 4x4 transform (for example a SceneTransform chain, or application state that backs a custom rendering layer).