Adding cocos support for 3d nodes.