Hi. It seems there is no "setWorldRotation" function for a Bone. Is there an easy way to do this? There is setRotation but thats for local roations.
My use case is simple: An enemy holding a gun should point in at the player. The problem is that the "gun" bone is in a heirachy and the local rotation is being constantly changed by the parent bones.
I could try looking up all the parent rotations and calculating the required local rotation myself, but wondering if there is an easier way to do this.
Thanks.
OK I just realized the latest version of Spine has this:
public float worldToLocalRotation (float worldRotation)
but my version doesn't. Unfortunately upgrading isn't an option right now.
I'll try it out anyway and get back