Apress / Mastering-ARKit

source code
Other
9 stars 5 forks source link

Chapter 13 - Missing Lion Node. #6

Closed erikuecke closed 2 years ago

erikuecke commented 2 years ago

Hello fellow readers. If your looking for the missing lionNode in the starter project.

Add this to the Viewcontroller:

private let lionNode: SCNNode = {
    guard let scene = SCNScene(named: "Lion.scn"),
      let node = scene.rootNode.childNode(
        withName: "Lion", recursively: false)
      else { fatalError("Lion node could not be found.") }
    return node
  }()
jayvenn commented 2 years ago

@erikuecke Thank you for pointing this out. Added lionNode to chapter 13's starter project.