From efd1776932d73a833008428fe19cb8484a7131cb Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 16 Mar 2022 13:06:52 +0900 Subject: [PATCH] =?UTF-8?q?UnityEngine.Matrix4x4=20=E3=81=AF=E5=88=97?= =?UTF-8?q?=E3=83=99=E3=82=AF=E3=83=88=E3=83=AB=E8=A1=A8=E7=8F=BE=E3=81=AA?= =?UTF-8?q?=E3=81=AE=E3=81=A7=E3=80=81root=20*=20parent=20*=20local=20?= =?UTF-8?q?=E3=81=AE=E5=90=91=E3=81=8D=E3=81=AB=E4=B9=97=E7=AE=97=E3=81=99?= =?UTF-8?q?=E3=82=8B=E5=BF=85=E8=A6=81=E3=81=8C=E3=81=82=E3=82=8B(System.N?= =?UTF-8?q?umerics.Matrix4x4=E3=81=A8=E9=80=86)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/VRM10/vrmlib/Runtime/Node.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/VRM10/vrmlib/Runtime/Node.cs b/Assets/VRM10/vrmlib/Runtime/Node.cs index a6d9a6155..c5fd43721 100644 --- a/Assets/VRM10/vrmlib/Runtime/Node.cs +++ b/Assets/VRM10/vrmlib/Runtime/Node.cs @@ -114,7 +114,7 @@ namespace VrmLib { if (Parent != null) { - SetLocalMatrix(m * Parent.InverseMatrix, calcWorldMatrix); + SetLocalMatrix(Parent.InverseMatrix * m, calcWorldMatrix); } else { @@ -144,7 +144,7 @@ namespace VrmLib public void CalcWorldMatrix(Matrix4x4 parent, bool calcChildren = true) { - var value = LocalMatrix * parent; + var value = parent * LocalMatrix; m_matrix = value; RaiseMatrixUpdated();