Hi all,
I'm new to iOS development and am having a little problem with 3d object in ARKit/SceneKit.
Loaded 3D Object by the code down below is automatically moves whenever I move fingers on the screen.
I didn't put any of the interactions: Code I added is for loading models from MDLAsset and adding the parentNode to the added SCNnode.
Also didn't change any of Main.storyboard.
Could anyone knows how to prevent/remove this function?
I'm new to iOS development and am having a little problem with 3d object in ARKit/SceneKit.
Loaded 3D Object by the code down below is automatically moves whenever I move fingers on the screen.
I didn't put any of the interactions: Code I added is for loading models from MDLAsset and adding the parentNode to the added SCNnode.
Also didn't change any of Main.storyboard.
Could anyone knows how to prevent/remove this function?
Code Block //ModelController.swift func loadModels(){ let url = Bundle.main.url(forResource: resourcePath, withExtension: ".obj") let asset = MDLAsset.init(url: url) let newNode = SCNNode(mdlObject: asset.object(at: 0)) parentNode.addChildNode(newNode) } //ViewController.swift func renderer(_ renderer: SCNSceneRenderer, didAdd node: SCNNode, for anchor: ARAnchor) { node.addChildNode(modelController.parentNode); }