aws-samples / amazon-sumerian-arkit-starter-app

A sample XCode project that demonstrates how to create a simple augmented reality experience using Apple's ARKit with the Amazon Sumerian service
Apache License 2.0
49 stars 27 forks source link

when to update SumerianConnector? #2

Closed SXCC closed 6 years ago

SXCC commented 6 years ago

I saw in the project that SumerianConnector was updated in delegate function "func renderer( renderer: SCNSceneRenderer, didApplyAnimationsAtTime time: TimeInterval)". May I ask why not update Connector in "func session( session: ARSession, didUpdate frame: ARFrame)"?

mike-starr commented 6 years ago

Good suggestion. I've updated SumerianConnector to work off the ARSessionDelegate's update method. Shouldn't be a significant difference in behavior, but the implementation is cleaner.