Hello folks,
im animating a Box in my RealityKit-App like this:
let animationDefinition = FromToByAnimation(
by: Transform(translation: [0, 0, 1]),
duration: 3,
bindTarget: .transform,
repeatMode: .cumulative
)
let animationResource = try! AnimationResource.generate(with: animationDefinition)
box.playAnimation(animationResource)
The animation plays, but it's not cumulative its repeating. Auto-reverse works. Does this work for you?
Greetings Gabe