Object Deletes Itself On Collision

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

Object Deletes Itself On Collision

Postby Laraso » Fri Apr 02, 2010 6:04 am

This is probably a really stupid question, but I don't care so I am going to ask it anyways. I am trying to make a cannon that shoots two bullets with lasers at the ends of them that shreds whatever it is launched at, but the problem I am having is configuring the bullets using thyme to delete themselves on collision so that they don't bounce back and shred the cannon that fired it.

If someone could please be so kind as to give me the thyme script that lets me accomplish this.
Phundamentalist... When possible!
Image
User avatar
Laraso
 
Posts: 241
Joined: Tue Sep 01, 2009 12:54 am
Location: What are you, a stalker?

Re: Object Deletes Itself On Collision

Postby Mystery » Fri Apr 02, 2010 6:09 am

On Algodoo the kill code is
Code: Select all
e.this.density = 0


On Phun
Code: Select all
e.this.airfrictionmult = NaN
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: Object Deletes Itself On Collision

Postby Laraso » Fri Apr 02, 2010 7:21 am

OK, thanks for the info.
Phundamentalist... When possible!
Image
User avatar
Laraso
 
Posts: 241
Joined: Tue Sep 01, 2009 12:54 am
Location: What are you, a stalker?


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 8 guests