public Branch(GrowthModel growthModel) { _growthModel = growthModel; ToDirection = Vector3.up; FromDirection = Vector3.up; IsLeaf = true; }
private Branch(Branch parent, int id, Vector3 toDirection, Vector3 fromDirection) { _growthModel = parent._growthModel; _depth = parent._depth + 1; _parent = parent; _id = id; ToDirection = toDirection; FromDirection = fromDirection; IsLeaf = true; }
public TogTree(GrowthModel growthModel) { Root = new Branch(growthModel); }