public void ResetSkeleton() { charactersJoints.SetLimbs(this.transform, UseFingers); skeletonBuilder = new SkeletonBuilder(); skeletonBuilder.MarkerPrefix = ActorMarkersPrefix; skeletonBuilder.SolveWithIK = UseIK; if (markerData != null) skeleton = skeletonBuilder.SolveSkeleton(markerData); else skeleton = new BipedSkeleton(); if (ScaleMovementToSize) scale = FindScale(); else scale = 0; }
public void ResetSkeleton() { charactersJoints.SetLimbs(this.transform, UseFingers); skeletonBuilder = new SkeletonBuilder(); skeletonBuilder.MarkerPrefix = ActorMarkersPrefix; skeletonBuilder.SolveWithIK = UseIK; if (markerData != null) { skeleton = skeletonBuilder.SolveSkeleton(markerData); } else { skeleton = new BipedSkeleton(); } if (ScaleMovementToSize) { scale = FindScale(); } else { scale = 0; } }