Instance Method

renderer:didApplyAnimationsAtTime:

Tells the delegate to perform any updates that need to occur after actions and animations are evaluated.

Declaration

- (void)renderer:(id<SCNSceneRenderer>)renderer didApplyAnimationsAtTime:(NSTimeInterval)time;

Parameters

aRenderer

The SceneKit object responsible for rendering the scene.

time

The current system time, in seconds. Use this parameter for any time-based elements of your game logic.

Discussion

SceneKit calls this method exactly once per frame, so long as the SCNView object (or other SCNSceneRenderer object) displaying the scene is not paused.

Implement this method to add game logic to the rendering loop. Any changes you make to the scene graph during this method are immediately reflected in the displayed scene. That is, SceneKit immediately updates the hierarchy of presentation nodes it uses to render the scene (instead of using the SCNTransaction class to “batch” your changes).

See Also

Adding Custom Logic to the Rendering Loop

- renderer:updateAtTime:

Tells the delegate to perform any updates that need to occur before actions, animations, and physics are evaluated.

- renderer:didSimulatePhysicsAtTime:

Tells the delegate to perform any updates that need to occur after physics simulations are performed.