public IKBone addBone(string name, float length, float width, float thickness) { IKBone newbone = IKBone.createBone(name, length, width, thickness, this.parentSkeleton); newbone.connectTo(this); return(newbone); }
protected void initRootBone() { this.rootBone = IKBone.createBone("Root", 0.0f, 0.0f, 0.0f, this); rootBone.transform.parent = this.gameObject.transform; rootBone.transform.localRotation = Quaternion.identity; rootBone.transform.localPosition = new Vector3(0.0f, stature.hipHeight, 0.0f); }