Hi,
I was wondering if there's a way to pin object A to object B at an X,Y offset to B's origin and have the offset respected when object B rotates?
e.g. a health bar pinned to a top-down enemy: the health bar is at 0,-32 relative to the enemy's origin; if the enemy rotates 90 degrees clockwise it should remain at 0,-32 not move to 32, 0.
I've tried using the pin behaviour and hierarchies but in both instances A changes its position as B rotates.
I'm currently repositioning A every tick, which works. I could add a blank sprite to the container and pin both the A and B to that, but was interested if there were any techniques using existing behaviours that didn't involve adding in an additional sprite.