Exemplo n.º 1
0
    public void growbranches7(RecursiveBundle bundle)
    {
        var parentbody = bundle.Parents.GetComponent <Rigidbody>();

        rigidbody.isKinematic = false;

        hingeJoint.connectedBody   = parentbody;
        hingeJoint.connectedAnchor = bundle.Parents.pivotposition;
    }
Exemplo n.º 2
0
    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;
    }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 public void Generated(RecursiveBundle bundle)
 {
     this.transform.localScale *= scalar;
 }
Exemplo n.º 5
0
 public void Generated(RecursiveBundle bundle)
 {
     this.transform.rotation *= Quaternion.Euler(angle * ((bundle.Index * 2) - 1), 0, 0);
 }
Exemplo n.º 6
0
 public void growbranches7(RecursiveBundle bundle)
 {
     this.transform.localScale *= 0.7f;
 }
Exemplo n.º 7
0
 public void growbranches7(RecursiveBundle bundle)
 {
     this.transform.rotation *= Quaternion.Euler(0, 0, 30 * ((bundle.Index * 2) - 1));
 }
Exemplo n.º 8
0
 public void growbranches7(RecursiveBundle bundle)
 {
     this.transform.position += this.transform.up * 2 * this.transform.localScale.y;
 }