Hi everyone,
I wonder if anyone came across an issue I'm having and maybe can give some advice.
I made a skeleton with hierarchy and I'm trying to create some animations with the sine behavior.
The sine is just controlling the angle of the bones.
When I change animation, I set all the bones angle to 0 the cycle position to 0, then I set the parameters I need for each bone (period, magnitude and cycle position).
Now the issue is that even though I'm calling the same function that sets the exact same values, every time I'm getting different results.
After about the 5th time I call the same animation I will get the actual 0 angle and right offsets. (you can see in the last animation of the first part of the video, I'm setting it to idle a few times, then eventually it get's locked and stay on the right angle.
Now if I add repeat 5 (less than that won't work) times on the set animation function (see second part of the video), it will always switch to the right angle and offset.
I'm cracking my head against the wall here, but I just can't figure out why this happens.
I can use the repeat as a work around, but I would really like to know what I'm doing wrong.
I can share a c3p file if needed.