A clear and concise description of what the bug is.
In the video, the root object contains a VRM character, and LookAtTarget works well initially.
However, after I rotated the root object and start the scene, LookAtTarget breaks.
Potential fix
I believe this bug occurs because some lookAt related code uses world rotation instead of local rotation. Here is a fix I found:
Environments (please complete the following information):
0.124.1
Unity-2022.3.6f1
Windows 10
Describe the bug
https://github.com/vrm-c/UniVRM/assets/8168124/931ea800-e669-4f07-b31c-9eb0470f5132
A clear and concise description of what the bug is. In the video, the root object contains a VRM character, and LookAtTarget works well initially. However, after I rotated the root object and start the scene, LookAtTarget breaks.
Potential fix I believe this bug occurs because some lookAt related code uses world rotation instead of local rotation. Here is a fix I found:
VRM10\Runtime\Components\Vrm10Runtime\Vrm10RuntimeLookAt.cs
VRM10\Runtime\Components\LookAt\LookAtEyeDirectionApplicableToBone.cs