コード例 #1
0
    public void growbranches6(RecursiveBundle2 bundle)
    {
        var parentbody = bundle.Parents.GetComponent <Rigidbody>();

        rigidbody.isKinematic = false;

        hingeJoint.connectedBody   = parentbody;
        hingeJoint.connectedAnchor = bundle.Parents.pivotposition;
    }
コード例 #2
0
 public void growbranches6(RecursiveBundle2 bundle)
 {
     this.transform.localScale *= 0.7f;
 }
コード例 #3
0
 public void growbranches6(RecursiveBundle2 bundle)
 {
     this.transform.position += this.transform.up * 2 * this.transform.localScale.y;
 }