Hi, I'm having some trouble rotating a my head bone through code. At the moment I'm trying this in Update and LateUpdate:
headBone.Rotation = 180; // for testing
Followed by various combinations of:
skeleton.UpdateWorldTransform();
skeleton.Update(0f);
skeletonAnimation.state.Update(0f);
skeletonAnimation.UpdateSkeleton(0f);
But none of them work. However if I try:
skeletonAnimation.state.SetAnimation(0, "run", true);
after setting the rotation then the head bone is rotated to 180 degrees (but obviously the animation keeps restarting over and over)
I've looked in SkeletonComponent.Update and really seems I should have to position the bones somewhere around line 129 but obviously there's no hook for that.
Somebody must have solved this - any help greatly appreciated!