I'm creating multiple nodes automatically and I want to arrange them around me, because at the moment I'm just increasing of 0.1 the current X location.
capsuleNode.geometry?.firstMaterial?.diffuse.contents = imageView capsuleNode.position = SCNVector3(self.counterX, self.counterY, self.counterZ) capsuleNode.name = topic.name self.sceneLocationView.scene.rootNode.addChildNode(capsuleNode) self.counterX += 0.1
So the question is, how can I have all of them around me instead of just in one line?
Did someone of you have some math function for this? Thank you!