this is a proof of concept of l-system tree/plant generator or a growth simulator using lineRenderer of unity engine.
video demonstration
- copy scripts to your projects.
- add a
+ > Empty
gameObject of any name withLsystem.cs
script attached. - make a prefab of
+ > Effects > line
. - adjust end cap vertices of the prefab if you wish.
- attach
Twig.cs
script to the prefab. - set
Branch
parameter of the first added gameObject as the prefab. - BUILD && RUN.