English中文

ModelNode

internal constructor new Cesium.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.
示例: 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 中节点的索引。 The index of the node in the glTF.
节点的 4x4 矩阵从其本地坐标变换到其父级坐标。将矩阵设置为未定义将恢复节点的原始变换,并允许模型中的任何动画再次为节点设置动画。 The node's 4x4 matrix transform from its local coordinates to its parent's. Setting the matrix to undefined will restore the node's original transform, and allow the node to be animated by any animations in the model again.

为了使更改生效,必须将此属性分配给;设置矩阵的各个元素将不起作用。 For changes to take effect, this property must be assigned to; setting individual elements of the matrix will not work.

的价值 The value of the name 该节点的属性。 property of this node.
获取节点的原始 4x4 矩阵变换,从其本地坐标到其父级坐标,而不应用任何节点变换或关节。 Gets the node's original 4x4 matrix transform from its local coordinates to its parent's, without any node transformations or articulations applied.
确定是否显示此节点及其子节点。 Determines if this node and its children will be shown.
默认值: Default Value: true
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.