Skip to content

Attempt at creating L-Systems within Unity and practice making a wizard in Unity for the creation of these systems.

License

Notifications You must be signed in to change notification settings

Sgawrys/UnityLSystemGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#L-System Generator for Unity

This is my first attempt at creating a Unity wizard for the creation of objects on screen.

I decided to go with creating L-Systems since I thought they look pretty cool and I wanted to learn a little bit of C# while I was at it.

What are L-Systems? Check it out here

##How to use

Once you have the script files in whatever project you want L-Systems to appear in, just go through Unity's menu system: GameObject->Create Other...->L-System... and follow the onscreen instructions from the wizard to create your very own system on screen.

When creating rules: Use letters for variables, '+' and '-' stand for turn 90 degrees clockwise and counterclockwise, '[' and ']' stand for pushing and popping the current state to the stack.

Example rule: F>F+F-F-F+F

##Known Issues

  • LSystemPainter is not completed yet, only outputs the L-System using Debug.DrawLine.

##Future

  • Would like to allow this system to make 3D L-Systems in the future.

##Example

Check out L-System for an example using Unity Web Player, added a little bit more code for the L-System to display on the web.

##Screenshots

alt text

alt text

About

Attempt at creating L-Systems within Unity and practice making a wizard in Unity for the creation of these systems.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages