Last active
January 19, 2022 11:53
-
-
Save aqubi/e61ae22816c18b76d9fa to your computer and use it in GitHub Desktop.
SceneKit Tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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