ModelNode
Use [Model.getNode] to get a node from a loaded model. Do not call the constructor directly.
A model node with a modifiable transform to allow users to define their own animations. While a model's asset can contain animations that target a node's transform, this class allows users to change a node's transform externally. In this way, animation can be driven by another source, not just by the model's asset.
const node = model.getNode("Hand");
node.matrix = Matrix4.fromScale(new Cartesian3(5.0, 1.0, 1.0), node.matrix);
Content copied to clipboard