mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-13 14:04:29 -05:00
Merge pull request #320 from Santarh/resetSpringBoneRotation
Add a method to reset bones under the influence of SpringBone.
This commit is contained in:
commit
291dea099e
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user