Axiom.Core.SceneNode.DetachAllObjects C# (CSharp) Method

DetachAllObjects() public method

Removes all currently attached SceneObjects from this SceneNode.
Bounds for this SceneNode are also updated.
public DetachAllObjects ( ) : void
return void
		public virtual void DetachAllObjects()
		{
			// notify each object that it was removed (sending in null sets its parent scene node to null)
			foreach ( MovableObject obj in objectList.Values )
			{
				obj.NotifyAttached( null );
			}
			objectList.Clear();

			// Make sure bounds get updated (must go right to the top)
			NeedUpdate();
		}