'Reality Composer – How to rotate an object forever?
I'm developing an AR app for iOS with Reality Composer.
In my scene I have a simple sphere that i want it to rotate forever without restarting the animation every time.
Currently I set up a rotation behavior for the Sphere as soon as the scene appears. The rotation lasts 20 seconds and I clicked to the loop button in order to make it loop.
Unlucky this won't give me the expected behavior: The animation lasts for 20 second and then it restarts but with a very ugly "lag".
Is there a way to make the rotation forever? In SceneKit it was something like repeatForever.
Solution 1:[1]
For perpetual rotation in Reality Composer app you need to implement a Spin behaviour to a model. At first apply Custom Behaviour, then apply a Scene Start Trigger and at last Action Sequence Spin with default properties.
The only drawback is a "twitching" animation.
P.S.
However, there's one interesting workaround.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |


