Hi!
Any suggestions appreciated, this might not be a bug, but maybe a feature request:
In short:
BoneFollower on child game object doesn't flip correctly when the parent flips by setting the Y-rotation.
In detail:
I'm creating a platform shooter where the characters flip by setting the parent Y-rotation to either 0 or -180. I know this isn't the best and that Spine has a ScaleX/FlipX and so on. But this works best for my type of game with ray casting and other stuff.
The characters have a child game object (the Inventory) that contains all the equipped guns. The guns have a BoneFollower. When my character flips, the guns don't follow correctly with the rotation.
My question:
I know this is easily solved by moving the inventory out of the character that flips. Is there a way to keep it the way I want it to work (by having the BoneFollower work inside child game objects that flip)? I'm going to have a lot of characters with inventories, and it's going to get really confusing to have the inventories laying outside the characters in the hierarchy.
Temporary solution (works with a slight delay in the rotation):
- Uncheck "Follow Bone Rotation" in the BoneFollower
- Add a "Follow Skeleton Utility Root Rotation" script and Reference the transform I want to follow
I don't know if this is good, or the way to do it, but works for now.
Thanks in advance!
Peter