All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.cesium.ModelNode.kt Maven / Gradle / Ivy

There is a newer version: 1.90.0-10
Show newest version
// Automatically generated - do not modify!

package cesium

/**
 * A model node with a transform for user-defined animations.  A glTF asset can
 * contain animations that target a node's transform.  This class allows
 * changing a node's transform externally so animation can be driven by another
 * source, not just an animation in the glTF asset.
 *
 * Use [Model.getNode] to create an instance.
 * ```
 * var node = model.getNode('LOD3sp');
 * node.matrix = Matrix4.fromScale(new Cartesian3(5.0, 1.0, 1.0), node.matrix);
 * ```
 * @see Online Documentation
 */
@JsName("\$cesium__ModelNode")
external class ModelNode {
    /**
     * The value of the `name` property of this node.
     * @see Online Documentation
     */
    val name: String

    /**
     * The index of the node.
     * @see Online Documentation
     */
    val id: String

    /**
     * Determines if this node and its children will be shown.
     * @see Online Documentation
     */
    var show: Boolean

    /**
     * The node's 4x4 matrix transform from its local coordinates to
     * its parent's.
     *
     * For changes to take effect, this property must be assigned to;
     * setting individual elements of the matrix will not work.
     * @see Online Documentation
     */
    var matrix: Matrix4

    /**
     * Gets the node's original 4x4 matrix transform from its local coordinates to
     * its parent's, without any node transformations or articulations applied.
     * @see Online Documentation
     */
    var originalMatrix: Matrix4
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy