This adds a root node to the `Model`'s node hierarchy! If There is already an initial root node, this node will still be a root node, but will be a `Sibling` of the `Model`'s `RootNode`. If this is the first root node added, you'll be able to access it via `RootNode`. A text name to identify the node. If null is provided, it will be auto named to "node"+index.
(string name, Matrix modelTransform, Mesh mesh = null, Material material = null, bool solid = true)
| 850 | /// issue with mesh and material being inconsistently null, then this |
| 851 | /// result will also be null.</returns> |
| 852 | public ModelNode Add(string name, Matrix modelTransform, Mesh mesh = null, Material material = null, bool solid = true) |
| 853 | { |
| 854 | return new ModelNode(_model, |
| 855 | NativeAPI.model_node_add(_model._inst, name, modelTransform, mesh != null ? mesh._inst : IntPtr.Zero, material != null ? material._inst : IntPtr.Zero, solid ? 1 : 0)); |
| 856 | } |
| 857 | } |
| 858 | |
| 859 | /// <summary>An enumerable for Model's visual ModelNodes</summary> |