removeChild Method

Removes a child node from the caller’s node.

removeChild(node);

 

Parameter

Description

node

Object of type SGNode

Return Value

If the method succeeds, the return value is true. If the method fails, the return value is false. SGWorld.lastError contains the failure reason.

Remarks

When removing a node from the nodes tree, the node and all its children are deleted from the terrain. The node parameter is no longer valid after the call to removeChild.