You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity