RealityKit cumulative animation not working

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

I also get the following console message: [Animation] No bind target found for played animation.

Did you solve it?

RealityKit cumulative animation not working
 
 
Q