in this method - func renderer(_ renderer: SCNSceneRenderer, updateAtTime time: TimeInterval) {
(this is called 60 x / second)
so check that a second has incremented before calculating changes to position.
func renderer(_ renderer: SCNSceneRenderer, updateAtTime time: TimeInterval) {
guard let cameraNode = sceneView.pointOfView else {
print("we got an update but we don't have a camera. No distance calculations can happen")
return
}
let delta = (time - startTime) * 60 * 60 * 24
//maybe as simple as if
if delta < 1 return
fyi - I'm making some progress with celestial sphere.
in this method - func renderer(_ renderer: SCNSceneRenderer, updateAtTime time: TimeInterval) { (this is called 60 x / second)
so check that a second has incremented before calculating changes to position.
fyi - I'm making some progress with celestial sphere.