You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environments (please complete the following information):
UniVRM version: 0.131.0
Unity version: Unity-2023.2.22f1
OS: Linux
Describe the bug
VRM1 LookAtTarget incorrect when character not in default orientation at Start. If the character is not rotated to default global rotation (0, 0, 0), then LookAtTarget will be visually incorrect.
Example: Character starts with rotation (0, 180, 0) then when look at target is positioned above the character, the eyes will look down and if positioned below, the eyes will look up. This is the opposite of expected behavior (look up when target is above, look down when target is below).
This is not the case when the character starts with rotation (0, 0, 0) and then rotates later.
Example
Screencast_20260611_163331.webm
To Reproduce
Import a vrm 1.0 file exported from vroid
Add to scene with rotation (0, 180, 0)
Enable LookAtTarget and assign a transform
Enter Play Mode
Move target above character
Eyes should be pointing down instead of towards target
Environments (please complete the following information):
0.131.0Unity-2023.2.22f1LinuxDescribe the bug
VRM1 LookAtTarget incorrect when character not in default orientation at Start. If the character is not rotated to default global rotation (0, 0, 0), then LookAtTarget will be visually incorrect.
Example: Character starts with rotation (0, 180, 0) then when look at target is positioned above the character, the eyes will look down and if positioned below, the eyes will look up. This is the opposite of expected behavior (look up when target is above, look down when target is below).
This is not the case when the character starts with rotation (0, 0, 0) and then rotates later.
Example
Screencast_20260611_163331.webm
To Reproduce