Skip to content

Instantly share code, notes, and snippets.

@aqubi
Last active January 19, 2022 11:53
Show Gist options
  • Save aqubi/e61ae22816c18b76d9fa to your computer and use it in GitHub Desktop.
Save aqubi/e61ae22816c18b76d9fa to your computer and use it in GitHub Desktop.
SceneKit Tips
let targetNode = self.scene!.rootNode.childNodeWithName(FLSNodeName.CameraTargetPoint, recursively: false)
if let target = targetNode {
let lookAtConstraint = SCNLookAtConstraint(target:target)
lookAtConstraint.influenceFactor = 0
self.pointOfView!.constraints = [lookAtConstraint]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment