public GameObject makeJoint(Trait t){ if (!defaultJointExists) return TREEUtils.JointFactory (t); else { GameObject G = Instantiate (defaultJoint); G.name = "joint_" + t.id; Joint J = G.GetComponent<Joint>(); J.setTrait (t); J.setScale (t.jointScale); J.joint = t.id; return G; } }