Right now I have
let animationDefinition = OrbitAnimation(
duration: 5, axis: [0, 1, 0], startTransform: transform,
orientToPath: false, bindTarget: .transform, repeatMode: AnimationRepeatMode.repeat)
I want the adjust the radius of the orbit. Changing axis: [0, 100, 0] does not as expected.
I noticed in the docs they pass rotation and translation but they don't document what they do and when I try to use them, I get
Extra arguments at positions #4, #5 in call
I'm guessing rotation and translation control the radius but I'm not sure how they work.
Radius is controlled by the
translationcomponent ofTransform.translationis not passed toOrbitAnimationbut rather to aTransformobject passed asstartTransform.So instead of using
model.transform, pass in aTransformand settranslationto the radius you want.The parenthesis in the docs can be confusing. With this spacing it becomes obvious: