Closed wrymn closed 7 months ago
I haven't seen behaviour like you're describing before, but having nothing playing on the Base Layer and having Layer 1 set to Additive means you're adding it to nothing. I'm not sure what that should actually do but I'd recommend trying it on a regular Override layer to see if it behaves differently.
Otherwise, feel free to send your animation and model to animancer@kybernetik.com.au so I can take a look at it.
I haven't seen behaviour like you're describing before, but having nothing playing on the Base Layer and having Layer 1 set to Additive means you're adding it to nothing. I'm not sure what that should actually do but I'd recommend trying it on a regular Override layer to see if it behaves differently.
Otherwise, feel free to send your animation and model to animancer@kybernetik.com.au so I can take a look at it.
You are correct, having that layer additive caused the animation to play in reverse. So this still seems like a bug, as it does not make sense, but for now I fixed it by not having 2nd layer as additive, but as override.
For some reason, my animation plays in reverse, this never happened.
This is how I play the animation clip:
In the editor I did a pause, and you can see I tried moving slider to the end![image](https://github.com/KybernetikGames/animancer/assets/12801017/e7c9c6c8-5641-4f56-87b3-8f707482e9ce)
notice the transform values![image](https://github.com/KybernetikGames/animancer/assets/12801017/68c37a68-64dd-4b14-9cc1-a3dad9d93ddd)
and now notice the animation that is being played, the starting keyframes:![image](https://github.com/KybernetikGames/animancer/assets/12801017/5a17d99b-70c9-4bea-8919-8092346e078c)
the values from animations first frame are same as animancer is sampling at the end of animation, however the animation ending keyframes are 0 for everything. It seems even the coordinates are reversed, as animation starting keys have positive values for vector 3, but the sampled values have negative.
So what animancer is doing, that it seems its playing the requested animation from reverse for some reason (even though time ticks forward in AnimancerComponent)
Why is that? There is nothing else setting or controlling this layer.
The animation plays correctly in the unity animation window preview.