public void growbranches6(RecursiveBundle2 bundle) { var parentbody = bundle.Parents.GetComponent <Rigidbody>(); rigidbody.isKinematic = false; hingeJoint.connectedBody = parentbody; hingeJoint.connectedAnchor = bundle.Parents.pivotposition; }
public void growbranches6(RecursiveBundle2 bundle) { this.transform.localScale *= 0.7f; }
public void growbranches6(RecursiveBundle2 bundle) { this.transform.position += this.transform.up * 2 * this.transform.localScale.y; }