public void growbranches7(RecursiveBundle bundle) { var parentbody = bundle.Parents.GetComponent <Rigidbody>(); rigidbody.isKinematic = false; hingeJoint.connectedBody = parentbody; hingeJoint.connectedAnchor = bundle.Parents.pivotposition; }
public void Generated(RecursiveBundle bundle) { var parentBody = bundle.Parent.GetComponent <Rigidbody>(); rigidbody.isKinematic = false; hinge.connectedBody = parentBody; hinge.autoConfigureConnectedAnchor = false; hinge.connectedAnchor = bundle.Parent.pivotPosition;// * bundle.Parent.transform.localScale.y; }
public void Generated(RecursiveBundle bundle) { this.transform.position += this.transform.up * this.transform.localScale.y; this.transform.position += this.transform.up * this.transform.localScale.z; }
public void Generated(RecursiveBundle bundle) { this.transform.localScale *= scalar; }
public void Generated(RecursiveBundle bundle) { this.transform.rotation *= Quaternion.Euler(angle * ((bundle.Index * 2) - 1), 0, 0); }
public void growbranches7(RecursiveBundle bundle) { this.transform.localScale *= 0.7f; }
public void growbranches7(RecursiveBundle bundle) { this.transform.rotation *= Quaternion.Euler(0, 0, 30 * ((bundle.Index * 2) - 1)); }
public void growbranches7(RecursiveBundle bundle) { this.transform.position += this.transform.up * 2 * this.transform.localScale.y; }