使用
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.
Model#getNode 从已加载的模型获取节点。不要直接调用构造函数。
Example:
const node = model.getNode("Hand");
node.matrix = Cesium.Matrix4.fromScale(new Cesium.Cartesian3(5.0, 1.0, 1.0), node.matrix);
See:
Members
该节点在 glTF 中的索引。
该节点从自身局部坐标到其父节点坐标的 4x4 矩阵变换。将矩阵设置为 undefined 会
恢复该节点的原始变换,并允许该节点再次被模型中的
任何动画驱动。
要使更改生效,必须对该属性进行赋值; 仅设置矩阵的单个元素将不起作用。
此节点的
name 属性的值。
originalMatrix : Matrix4
获取该节点从自身局部坐标到其父节点坐标的原始 4x4 矩阵变换,
不应用任何节点变换或关节动作。
决定此节点及其子节点是否被显示。
-
Default Value:
true
