Oncollide delete now more possible?
14 posts • Page 1 of 1
Oncollide delete now more possible?
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?
"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?
-
Ian151 - Posts: 47
- Joined: Tue Sep 01, 2009 12:02 am
Re: Oncollide delete now more possible?
technically, 0 isnt negative OR positive. instead of using 0, use use NaN
TheWinkits wrote:They both looks of cuking amazing
-
Chronos - [Most Active Member 2010]
- Posts: 4457
- Joined: Mon Aug 31, 2009 6:00 pm
- Location: Californania
Re: Oncollide delete now more possible?
I don't see what density has to do with anything.
EDIT: Wow, we just posted at the same time.
EDIT: Wow, we just posted at the same time.
-
Laraso - Posts: 241
- Joined: Tue Sep 01, 2009 12:54 am
- Location: What are you, a stalker?
Re: Oncollide delete now more possible?
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
-
Chronos - [Most Active Member 2010]
- Posts: 4457
- Joined: Mon Aug 31, 2009 6:00 pm
- Location: Californania
Re: Oncollide delete now more possible?
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
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: Oncollide delete now more possible?
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
-
Chronos - [Most Active Member 2010]
- Posts: 4457
- Joined: Mon Aug 31, 2009 6:00 pm
- Location: Californania
Re: Oncollide delete now more possible?
yeah i guessed that too in the phun forum
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: Oncollide delete now more possible?
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.
-
Rhett97 - Posts: 522
- Joined: Mon Aug 31, 2009 10:32 pm
Re: Oncollide delete now more possible?
Oh, now I know why it worked in my scene.
Registered: 2008-10-16
-
Ivanlul - Posts: 763
- Joined: Mon Aug 31, 2009 11:19 pm
- Location: US
Re: Oncollide delete now more possible?
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?
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.
-
Paradigm 29 - Posts: 284
- Joined: Tue Sep 01, 2009 12:06 am
- Location: Houston, Tx
Re: Oncollide delete now more possible?
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! 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!
-
Ian151 - Posts: 47
- Joined: Tue Sep 01, 2009 12:02 am
Re: Oncollide delete now more possible?
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).
-
chaff - Posts: 71
- Joined: Tue Sep 01, 2009 2:00 am
14 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests