0

What i want is to add a node with same rotation as the vertical plane. I have tried by getting the Euler angles of the plane node and assigning it to my 3d object's root node but the result is not as desired see the screenshot. Vertical plane is represented by orange colour.

By adding a simple node without modifying Euler angles. Please note that the the position and Euler angles in dae's root node is 0, 0, 0 while the scale is 1, 1, 1.

var scene = SCNScene(named: selectedObject.daeURL)!
sceneView.scene.rootNode.addChildNode(scene.rootNode)

enter image description here

By assigning Euler angles of the plane node to to my 3d object's root node:

var scene = SCNScene(named: selectedObject.daeURL)!
scene.rootNode.eulerAngles = anchorNode.eulerAngles
sceneView.scene.rootNode.addChildNode(scene.rootNode)

enter image description here

Actual desired result should be:

enter image description here

Muhammad Zeeshan
  • 2,441
  • 22
  • 33

0 Answers0