title: ARKit How to stop flickering or How to position node towards camera,
body: <p>I have created Wall with SCNPlane. on that plane I am adding another Plane where User point the device</p>
  
  <p>But because of both plane has same position newly added plane is flickering.</p>
  
  <p>So How can I keep distance from wall node and plane node</p>
  
  <p>how i add plane node.</p>
  
  <pre><code>let hitTestScene = self.sceneView.hitTest(self.sceneView.center, options:[SCNHitTestOption.categoryBitMask : 16])
   if let first = hitTestScene.first  {
      if first.node.name == NodeNames.wallNode {
         let value = MathHelper().getMeasurementBetween(vector1: lastNodePosition, and: first.worldCoordinates)
            let node = SCNNode(geometry: SCNPlane(width: CGFloat( value) , height:  CGFloat(value)))
             node.geometry?.firstMaterial?.isDoubleSided = true
             node.name = "Plane1"
             node.geometry?.firstMaterial?.diffuse.contents = UIColor.red.withAlphaComponent(1)
             node.eulerAngles = first.node.eulerAngles
             node.position = lastNodePosition
  
             self.sceneView.scene.rootNode.addChildNode(node)
  
         }
   }  
  </code></pre>
  
  <p>Plane in red is continually    flicked  (appear - disappear )</p>
  
  <p><a href="https://i.stack.imgur.com/Owq05.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Owq05.png" alt="enter image description here"></a></p>
  
  <p>I have tried <code>node.position.z -= 0.2</code> but it is not working and node position changes completely   because of <code>node.eulerAngles</code> </p>
  
  <p>Any help would be appreciated </p>