So when ever the value of isPlaying changes, the animation should respond to it.
However, I'm not sure if this is the most efficient way (since updateUIView is triggered at each frame)...
Is there any way to limit the rendering distance for an ARView?
For example, limiting the distance to 10 meters (similar to SceneKit'szFar` property of the camera).
Greetings.
Thanks for the great article.
Just had a question ... Is there any way to pause an already started animation & being able to resume it from exactly where it was stopped?
The only solution I found for it is to create an argument
isPlaying
, in the method responsible for triggering the animation:& then use the method in
updateUIView
's body:So when ever the value of
isPlaying
changes, the animation should respond to it. However, I'm not sure if this is the most efficient way (sinceupdateUIView
is triggered at each frame)...