Adds a child node under the caller’s node.
appendChild(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
If the node is already in the nodes tree, it is first removed before it is appended to its new parent.