public void SetLimbOrientations(BipedLimbOrientations o) { this.SetLimbOrientation(FullBodyBipedChain.LeftArm, o.leftArm); this.SetLimbOrientation(FullBodyBipedChain.RightArm, o.rightArm); this.SetLimbOrientation(FullBodyBipedChain.LeftLeg, o.leftLeg); this.SetLimbOrientation(FullBodyBipedChain.RightLeg, o.rightLeg); }
/* * Sets the bend direction of a limb to the local axes specified by the LimbOrientation. * */ private void SetLimbOrientation(FullBodyBipedChain chain, BipedLimbOrientations.LimbOrientation limbOrientation) { bool inverse = chain == FullBodyBipedChain.LeftArm || chain == FullBodyBipedChain.RightArm; if (inverse) { GetBendConstraint(chain).SetLimbOrientation(-limbOrientation.upperBoneForwardAxis, -limbOrientation.lowerBoneForwardAxis, -limbOrientation.lastBoneLeftAxis); GetLimbMapping(chain).SetLimbOrientation(-limbOrientation.upperBoneForwardAxis, -limbOrientation.lowerBoneForwardAxis); } else { GetBendConstraint(chain).SetLimbOrientation(limbOrientation.upperBoneForwardAxis, limbOrientation.lowerBoneForwardAxis, limbOrientation.lastBoneLeftAxis); GetLimbMapping(chain).SetLimbOrientation(limbOrientation.upperBoneForwardAxis, limbOrientation.lowerBoneForwardAxis); } }
/// <summary> /// Sets the bend directions of the limbs to the local axes specified by BipedLimbOrientations. /// </summary> public void SetLimbOrientations(BipedLimbOrientations o) { SetLimbOrientation(FullBodyBipedChain.LeftArm, o.leftArm); SetLimbOrientation(FullBodyBipedChain.RightArm, o.rightArm); SetLimbOrientation(FullBodyBipedChain.LeftLeg, o.leftLeg); SetLimbOrientation(FullBodyBipedChain.RightLeg, o.rightLeg); }
public static Transform DetectRootNodeBone(BipedReferences references) => default; // 0x00000001809E3940-0x00000001809E3E00 public void SetLimbOrientations(BipedLimbOrientations o) { } // 0x00000001809E5B80-0x00000001809E5BF0