Cut Block?

About advanced scenes, and the Thyme scripting language used in Algodoo.

Cut Block?

Postby Physicsguy » Sat Jan 02, 2010 5:52 pm

Hello,

I as wondering if there is a way that you could cut a block into a random shape oncollide, to make a sort of DMM idea.

So when a circle hits a square, the square gets a chunk out of it. I'm no scriptingguy (:P), but I think this would be a cool idea to make things breakable without laggy.
Proud Phundamentalist!
User avatar
Physicsguy
 
Posts: 164
Joined: Mon Aug 31, 2009 11:39 pm

Re: Cut Block?

Postby standardtoaster » Sat Jan 02, 2010 10:47 pm

You cannot modify the any constant properties of an object through the scripting abilities given to us. You can, however, if you destroy the square and then spawn a new shape in its place.
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: Cut Block?

Postby RicH » Sun Jan 03, 2010 3:55 am

You can use lasers.
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am

Re: Cut Block?

Postby standardtoaster » Mon Jan 04, 2010 1:22 am

I'm pretty sure that he wouldn't want to cut the car in half. ;D
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: Cut Block?

Postby Mystery » Mon Jan 04, 2010 1:34 am

Using Method-X you could find out the property of the old shape and using some nice codes you could make it into two random shapes.
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: Cut Block?

Postby RicH » Mon Jan 04, 2010 12:20 pm

standardtoaster wrote:I'm pretty sure that he wouldn't want to cut the car in half. ;D

Oh wait, I read it wrong. :lol:
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 14 guests