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:
exqt
changed the title
[1.0] LookAtTarget Does Not Work Correctly if VRM Model is Not Facing +Z at Scene Start
[1.0] LookAtTarget does not work correctly if a character isn't facing +Z at scene start (+ fix?)
Jul 5, 2024
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: