I have a SceneKit game that I am trying to integrate with GameplayKit.
In order for GameplayKit to work, I need to update my components and objects by calling their method updateWithDeltaTime(seconds:).
In the SpriteKit / GameplayKit examples I've seen, this is done using the SKScene method update, which runs continuously without input from the user or developer.
It seems that in SceneKit, to achieve something like this, I need to call a method SCNSceneRendererDelegate renderer(renderer: updateAtTime time:).
However, this only works when something in the scene works, such as SCNAction. But in my game, nothing starts until the user checks.
Is there another recommended SceneKit method for connecting to some kind of loop queue that runs continuously without any hints?
source
share