Merge pull request #320 from Santarh/resetSpringBoneRotation

Add a method to reset bones under the influence of SpringBone.
This commit is contained in:
hiroj 2019-09-27 12:28:29 +09:00 committed by GitHub
commit 291dea099e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,6 +230,14 @@ namespace VRM
}
}
public void SetLocalRotationsIdentity()
{
foreach (var verlet in m_verlet)
{
verlet.Head.localRotation = Quaternion.identity;
}
}
static IEnumerable<Transform> GetChildren(Transform parent)
{
for(int i=0; i<parent.childCount; ++i)