Skeletal object system?
Posted: Wed Dec 15, 2010 2:06 am
So I'm messing around with a miniproject about growing plants. I made a little system so that the plants are skeleton-based, that is, they're made of pieces which each have an angle, a length, and may have a table of attached pieces. I have a drawing function which recurses down the body, drawing all the parts at their correct angle, position, and scale (based on length). For the more visually oriented, this:
Equals this:
So my question is, should I clean this up, maybe expand it to have some kind of animation system, and release it? Or does nobody have a use for such a thing?
Code: Select all
body = {
a=0, l=40, i=graphics.stem,
parts = {
{a=1, l=20, i=graphics.stem},
{a=-1, l=40, i=graphics.stem,
parts = {{a=1, l=20, i=graphics.stem,},},
},
},
},
So my question is, should I clean this up, maybe expand it to have some kind of animation system, and release it? Or does nobody have a use for such a thing?