Phun/Algodoo generator in Ruby

For topics that don't fit under the other topics or forums.

Phun/Algodoo generator in Ruby

Postby jeremiasz » Fri Feb 19, 2010 12:23 am

I wrote a simple Phun/Algodoo generator in Ruby. It can read phn or phz file and allows to add arbitrary objects easily
Code: Select all
ph = Phun::Phn.new("Some.phn" )
ph.addGeom('Box', :pos => Array.rand(2, 2), size => => Array.rand(2, 2))

The code can be downloaded from http://www.jurasz.de/sites/default/files/code/phun.zip.
Example with 1000 objects
Image
The whole story under http://www.jurasz.de/node/74.
jeremiasz
 
Posts: 2
Joined: Tue Feb 16, 2010 12:13 pm

Re: Phun/Algodoo generator in Ruby

Postby KarateBrot » Fri Feb 19, 2010 7:52 am

You can do the same thing in algodoo's console, too ;)
But it's very cool. I would love to see more things like this.
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: Phun/Algodoo generator in Ruby

Postby Paradigm 29 » Sat Feb 20, 2010 2:14 am

I would also like to see more. Maybe something interesting could arise from this?
Image
User avatar
Paradigm 29
 
Posts: 284
Joined: Tue Sep 01, 2009 12:06 am
Location: Houston, Tx


Return to Algodoo in general

Who is online

Users browsing this forum: No registered users and 5 guests