Beispiel #1
0
    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;
    }
Beispiel #3
0
 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;
 }
Beispiel #4
0
 public void Generated(RecursiveBundle bundle)
 {
     this.transform.localScale *= scalar;
 }
Beispiel #5
0
 public void Generated(RecursiveBundle bundle)
 {
     this.transform.rotation *= Quaternion.Euler(angle * ((bundle.Index * 2) - 1), 0, 0);
 }
Beispiel #6
0
 public void growbranches7(RecursiveBundle bundle)
 {
     this.transform.localScale *= 0.7f;
 }
Beispiel #7
0
 public void growbranches7(RecursiveBundle bundle)
 {
     this.transform.rotation *= Quaternion.Euler(0, 0, 30 * ((bundle.Index * 2) - 1));
 }
Beispiel #8
0
 public void growbranches7(RecursiveBundle bundle)
 {
     this.transform.position += this.transform.up * 2 * this.transform.localScale.y;
 }