Mar 23

Most of the experiments I make these days have something to do with either fractals or Box2D, so I had this brilliant thought on the weekend ... how about fractal trees in Box2D! Ok, maybe it's not that brilliant.

Click for flash interactive

It's a pretty straightforward demo right now, but there's something cool about seeing physics-ey trees swaying realistically (as there is with most stuff in physics engines).

If anyone's interested in the source I'll release it at some point. Hopefully it'll end up being used as part of a game that I have in mind, look out for more updates :)

Filed under:

 
  • Print
  • Comments (1)
Michal
22 Mar 2010

Really nice, however I'd recommend altering it a bit. Why don't you use randomized branch lenght and allow not only one-level-lower branches to grow from joint-point, but maybe two-level-lower as well? The tree would definitely look more realistic!
And of course I'm interested in viewing the source =)

Return to our Labs blog