Axiom.Core.InstancedGeometry.AddSceneNode C# (CSharp) Метод

AddSceneNode() публичный Метод

adds all the Entity objects attached to a SceneNode and all it's children to the static geometry. This method performs just like addEntity, except it adds all the entities attached to an entire sub-tree to the geometry. The position / orientation / scale parameters are taken from the node structure instead of being specified manually.
public AddSceneNode ( SceneNode node ) : void
node SceneNode
Результат void
		public virtual void AddSceneNode( SceneNode node )
		{
			// Iterate through all attached object
			foreach ( MovableObject iter in node.Objects )
			{
				if ( iter.MovableType == "Entity" )
				{
					AddEntity( (Entity)iter,
								node.DerivedPosition,
								node.DerivedOrientation,
								node.DerivedScale );
				}
			}

			// Iterate through all the child-nodes
			foreach ( Node iter in node.Children )
			{
				SceneNode sceneNode = (SceneNode)iter;
				AddSceneNode( sceneNode );
			}
		}