KayelGee / token-attacher

MIT License
11 stars 18 forks source link

BUG: Holding Shift + WASD causes tokens to face different directions #56

Open GambetTV opened 3 years ago

GambetTV commented 3 years ago

When attaching one token to another (such as for riding a mount), and holding Shift + W, A, S, or D, to change their facing but not move them, the primary token will point where you tell it to, but the attached token will point in the opposite direction. It's not a 180 from it though, it's closer to like, 150 degrees off or something.

The same thing occurs if you hold Ctrl or Shift and use Mouse Wheel to pivot the token facing.

KayelGee commented 3 years ago

I don't see this happening. Are you on the current version? Are you having any other modules active?

GambetTV commented 2 years ago

Ah, it seems to be an incompatibility with the module Auto-Rotate, when Default Rotation Mode is turned on. I imagine this is a problem with that module rather than yours, though.

KayelGee commented 2 years ago

Basically how token attacher deals with rotation: When a token is attached to a base token, it's rotation relative to the base token will be saved. After the base token moves/rotates/etc. the attached token will get it's rotation(and other data) set to the saved rotation relative to the new rotation of the base token.

Auto-Rotate might react to that and overwrite the rotation for whatever reason and overwrite what token attacher just set. I haven't looked at their code yet, but I can check next time I'm at my code.