Oncollide delete now more possible?

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

Oncollide delete now more possible?

Postby Ian151 » Tue Sep 01, 2009 3:02 am

I read the algodoo changelog (that I have now) and noticed something like this...
"fixed bug - objects without positive density shouldn't crash the application"

are you thinking what I'm thinking? Maybe it's better to script an object to erase on command much better now?
User avatar
Ian151
 
Posts: 47
Joined: Tue Sep 01, 2009 12:02 am

Re: Oncollide delete now more possible?

Postby Chronos » Tue Sep 01, 2009 3:05 am

technically, 0 isnt negative OR positive. instead of using 0, use use NaN
TheWinkits wrote:They both looks of cuking amazing
User avatar
Chronos
[Most Active Member 2010]
 
Posts: 4457
Joined: Mon Aug 31, 2009 6:00 pm
Location: Californania

Re: Oncollide delete now more possible?

Postby Laraso » Tue Sep 01, 2009 3:06 am

I don't see what density has to do with anything.

EDIT: Wow, we just posted at the same time.
Phundamentalist... When possible!
Image
User avatar
Laraso
 
Posts: 241
Joined: Tue Sep 01, 2009 12:54 am
Location: What are you, a stalker?

Re: Oncollide delete now more possible?

Postby Chronos » Tue Sep 01, 2009 3:07 am

Laraso wrote:I don't see what density has to do with anything.

velocity = gravity / density (or something)

if density is equal to 0, youre dividing by 0

phun goes boom

as long as it isnt moving when its changed to 0, its fine. if it moves, it crashes. however, if you set it to NaN, you can have it move without crashing, and it still deletes
TheWinkits wrote:They both looks of cuking amazing
User avatar
Chronos
[Most Active Member 2010]
 
Posts: 4457
Joined: Mon Aug 31, 2009 6:00 pm
Location: Californania

Re: Oncollide delete now more possible?

Postby KarateBrot » Tue Sep 01, 2009 3:22 am

Chronos wrote:
Laraso wrote:I don't see what density has to do with anything.

velocity = gravity / density (or something)

if density is equal to 0, youre dividing by 0

phun goes boom

as long as it isnt moving when its changed to 0, its fine. if it moves, it crashes. however, if you set it to NaN, you can have it move without crashing, and it still deletes


volume = mass / density

but because phun /algodoo only has got 2 dimensions it is area = mass / density
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: Oncollide delete now more possible?

Postby Chronos » Tue Sep 01, 2009 3:24 am

i knew it was something like that. but still, if density = 0, mass = 0, so youre still dividing by zero, so phun still crashes
TheWinkits wrote:They both looks of cuking amazing
User avatar
Chronos
[Most Active Member 2010]
 
Posts: 4457
Joined: Mon Aug 31, 2009 6:00 pm
Location: Californania

Re: Oncollide delete now more possible?

Postby KarateBrot » Tue Sep 01, 2009 3:52 am

yeah i guessed that too in the phun forum
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: Oncollide delete now more possible?

Postby Rhett97 » Tue Sep 01, 2009 4:30 am

Well i can see how it can crash phun...It probably cant handle a paradox.... its basically a paradox
Chronos wrote:There's nothing wrong with swearing. They're just words. People just think they have a bad meaning. What's the difference between shit and poo? Nothing. They're the same.
User avatar
Rhett97
 
Posts: 522
Joined: Mon Aug 31, 2009 10:32 pm

Re: Oncollide delete now more possible?

Postby Ivanlul » Tue Sep 01, 2009 5:39 am

Oh, now I know why it worked in my scene.
Registered: 2008-10-16
Image
User avatar
Ivanlul
 
Posts: 763
Joined: Mon Aug 31, 2009 11:19 pm
Location: US

Re: Oncollide delete now more possible?

Postby fox11trot » Tue Sep 01, 2009 7:30 am

i always set the density to like .00000000000000000001 and didnt change the collideset so basically the object on collide floats up so fast it doesnt hit anything except the plane that deletes things
fox11trot
 
Posts: 62
Joined: Tue Sep 01, 2009 7:25 am

Re: Oncollide delete now more possible?

Postby Paradigm 29 » Tue Sep 01, 2009 5:12 pm

Ian151 wrote:I read the algodoo changelog (that I have now) and noticed something like this...
"fixed bug - objects without positive density shouldn't crash the application"

are you thinking what I'm thinking? Maybe it's better to script an object to erase on command much better now?


You are correct. Changing density to 0 works in Algodoo it was one of the annoying bugs that emil was able to fix. Have fun deleting things!

Chronos wrote:velocity = gravity / density

Combot, you idiot.
Image
User avatar
Paradigm 29
 
Posts: 284
Joined: Tue Sep 01, 2009 12:06 am
Location: Houston, Tx

Re: Oncollide delete now more possible?

Postby Ian151 » Tue Sep 01, 2009 9:35 pm

Paradigm 29 wrote:
Ian151 wrote:I read the algodoo changelog (that I have now) and noticed something like this...
"fixed bug - objects without positive density shouldn't crash the application"

are you thinking what I'm thinking? Maybe it's better to script an object to erase on command much better now?


You are correct. Changing density to 0 works in Algodoo it was one of the annoying bugs that emil was able to fix. Have fun deleting things!

Chronos wrote:velocity = gravity / density

Combot, you idiot.


Whoa! :shock: Well ok that sounds good then, I thought I even saw you say it wasn't before but I guess you changed your mind because you found out about that bug before. ok! :D
"THE BEST 2 PLAYER SCENE EVER MADE!!!" - ianno
http://www.algodoo.com/algobox/details.php?id=24204
Image
User avatar
Ian151
 
Posts: 47
Joined: Tue Sep 01, 2009 12:02 am

Re: Oncollide delete now more possible?

Postby copsinsip » Thu Sep 03, 2009 9:15 pm

A example made with a laser:

Image
Author: copsinsip
Title: Deleting Laser
File Size: 6.56 kB
Rating: Image
ImageImage
copsinsip
 
Posts: 22
Joined: Mon Aug 31, 2009 6:08 pm

Re: Oncollide delete now more possible?

Postby chaff » Sat Sep 05, 2009 9:23 pm

I would suggest using density = 0, because if something is fixated to it, it won't be deleted (if you use density = NaN, anything fixated to it disappears too).
Image My Swagbucks refferal, join if you want
User avatar
chaff
 
Posts: 71
Joined: Tue Sep 01, 2009 2:00 am


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 1 guest