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

DetachObject() public method

Removes the specifed object from this scene node.
Bounds for this SceneNode are also updated.
public DetachObject ( Axiom.Core.MovableObject obj ) : void
obj Axiom.Core.MovableObject Reference to the object to remove.
return void
		public virtual void DetachObject( MovableObject obj )
		{
			Debug.Assert( obj != null, "obj != null" );

			objectList.Remove( obj.Name );

			// notify the object that it was removed (sending in null sets its parent scene node to null)
			obj.NotifyAttached( null );

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