Node node = new Node(this.getName()+ntarget.getName()); node.setCullMode(ntarget.cullMode); node.setLightCombineMode(ntarget.lightCombineMode); node.getLocalRotation().set(ntarget.getLocalRotation()); node.getLocalScale().set(ntarget.getLocalScale()); node.getLocalTranslation().set(ntarget.getLocalTranslation()); node.setRenderQueueMode(ntarget.renderQueueMode); node.setTextureCombineMode(ntarget.textureCombineMode); node.setZOrder(ntarget.getZOrder());  for (int i = 0; i < RenderState.RS_MAX_STATE; i++) { RenderState state = ntarget.getRenderState( i ); if (state != null) { node.setRenderState(state ); } }
Node node = new Node();  copyNode(ntarget, node);
	private void processTarget(Node parent, Spatial target) {		if((target.getType() & SceneElement.NODE) != 0) {			Node ntarget = (Node)target;			Node node = new Node(this.getName()+ntarget.getName());            node.setCullMode(ntarget.cullMode);			node.setLightCombineMode(ntarget.lightCombineMode);			node.getLocalRotation().set(ntarget.getLocalRotation());			node.getLocalScale().set(ntarget.getLocalScale());			node.getLocalTranslation().set(ntarget.getLocalTranslation());			node.setRenderQueueMode(ntarget.renderQueueMode);			node.setTextureCombineMode(ntarget.textureCombineMode);			node.setZOrder(ntarget.getZOrder());						for (int i = 0; i < RenderState.RS_MAX_STATE; i++) {                RenderState state = ntarget.getRenderState( i );                if (state != null) {                    node.setRenderState(state );                }			}						parent.attachChild(node);			            if (ntarget.getChildren() != null)    			for(int i = 0; i < ntarget.getChildren().size(); i++) {    				processTarget(node, ntarget.getChild(i));    			}					} else if((target.getType() & SceneElement.TRIMESH) != 0) {			if((target.getType() & SceneElement.SHARED_MESH )!= 0) {				SharedMesh copy = new SharedMesh(this.getName()+target.getName(), 						(SharedMesh)target, updatesCollisionTree);				parent.attachChild(copy);			} else {				SharedMesh copy = new SharedMesh(this.getName()+target.getName(), 						(TriMesh)target, updatesCollisionTree);				parent.attachChild(copy);			}		}	}