public SmplContainer(GameObject container, StickContainer stickSkeleton) { SubContainerObject = container; stickContainer = stickSkeleton; GameObject smpl_male = SubContainerObject.transform.Find("SMPL_m_unityDoubleBlends_lbs_10_scale5_207_v1.0.0").gameObject; animator = smpl_male.GetComponent <Animator>(); CharacterRootTransform = smpl_male.transform.Find("m_avg_root"); absoluteOffsetMap = RiggingUtils.CreateOffsetMap(animator, CharacterRootTransform); }
public RobotContainer(GameObject container, StickContainer stickSkeleton) { SubContainerObject = container; stickContainer = stickSkeleton; GameObject robotKyle = SubContainerObject.transform.Find("Robot Kyle").gameObject; CharacterRootTransform = robotKyle.transform; animator = robotKyle.GetComponent <Animator>(); absoluteOffsetMap = RiggingUtils.CreateOffsetMap(animator, CharacterRootTransform); }