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.124.1
Unity version: Unity-2022.3.6f1
OS: Windows 10
Describe the bug
video
output.mp4
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
output.mp4
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
The text was updated successfully, but these errors were encountered: