internal constructor new Cesium.ModelNode()

Use Model#getNode to get a node from a loaded model. Do not call the constructor directly.
具有可修改变换功能的模型节点,允许用户定义其 自己的动画。 虽然一个模型的资产可以包含 动画的目标 节点的变换, 此类允许用户更改节点的变换 对外. 这样,动画可以由另一个来源驱动,而不是 只是模型的资产.
Example:
const node = model.getNode("Hand");
node.matrix = Cesium.Matrix4.fromScale(new Cesium.Cartesian3(5.0, 1.0, 1.0), node.matrix);
See:

Members

readonly id : number

GlTF中节点的索引.

matrix : Matrix4

节点的4x4矩阵从本地坐标转换为 他们的父母。 将矩阵设置为未定义将恢复 节点的原变换,并允许节点由动画 模型中的任何动画.

更改要生效,必须指定该财产; 设置矩阵的单个要素将无法工作.

readonly name : string

此节点的 NT 0 name NT 1 属性的值 .

originalMatrix : Matrix4

获得节点原4x4矩阵从本地转换 坐标到其父的, 没有任何节点转换 或适用说明.

show : boolean

确定是否显示此节点及其子 .
Default Value: true
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.