OnCollide Water Spawning...

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

OnCollide Water Spawning...

Postby ScottMajor » Tue Feb 18, 2014 12:41 pm

I found the common code online for the water spawn on collide.... and an interesting thing happens once I use that... Water bounces all over the place like its been rubberized or something..... Even making a block and liquifying it, it explodes like crazy Doesnt do that till after I spawn water with the oncollied scripting.

Has this happened to anyone else? If so how did/can you fix it?
ScottMajor
 
Posts: 6
Joined: Tue Feb 18, 2014 9:12 am

Re: OnCollide Water Spawning...

Postby Kilinich » Tue Feb 18, 2014 1:32 pm

update algodoo.
reset algodoo config.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: OnCollide Water Spawning...

Postby ScottMajor » Tue Feb 18, 2014 2:38 pm

Done, and done, no change...
ScottMajor
 
Posts: 6
Joined: Tue Feb 18, 2014 9:12 am

Re: OnCollide Water Spawning...

Postby ScottMajor » Tue Feb 18, 2014 2:46 pm

Here is the actions I am performing.

http://youtu.be/K6s4s1h1eDk
ScottMajor
 
Posts: 6
Joined: Tue Feb 18, 2014 9:12 am

Re: OnCollide Water Spawning...

Postby Kilinich » Tue Feb 18, 2014 3:56 pm

Please post code here.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: OnCollide Water Spawning...

Postby ScottMajor » Wed Feb 19, 2014 3:15 am

The water spawn code or the video URL?
ScottMajor
 
Posts: 6
Joined: Tue Feb 18, 2014 9:12 am

Re: OnCollide Water Spawning...

Postby jon_joy_1999 » Wed Feb 19, 2014 9:04 am

the water spawn code. my psychic powers tell me that your code is changing some SPH variables, probably viscosity, but I'm frequently wrong, and we'd like to see what it's doing
Image
BSrac = BoincStats recent average credit
I'd rather be network computing.
jon_joy_1999
 
Posts: 233
Joined: Fri Dec 09, 2011 12:51 am

Re: OnCollide Water Spawning...

Postby electronicboy » Wed Feb 19, 2014 3:56 pm

Code: Select all
version := 1


Try adding that into the Scene.AddWater functions arguments, that should solve the issue as long as you're not changing any sph. variables in your code.
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: OnCollide Water Spawning...

Postby ScottMajor » Fri Feb 21, 2014 1:19 am

Code: Select all
(e)=>{Scene.addWater({vecs = [e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos]})}
ScottMajor
 
Posts: 6
Joined: Tue Feb 18, 2014 9:12 am

Re: OnCollide Water Spawning...

Postby Kilinich » Fri Feb 21, 2014 8:35 am

code is ok, please post scene.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: OnCollide Water Spawning...

Postby ScottMajor » Mon Feb 24, 2014 8:40 am

not sure how to do that
ScottMajor
 
Posts: 6
Joined: Tue Feb 18, 2014 9:12 am

Re: OnCollide Water Spawning...

Postby Kilinich » Mon Feb 24, 2014 9:17 am

Press "Post reply" here and then "Upload attachment" on bottom window.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: OnCollide Water Spawning...

Postby Xray » Sat Mar 29, 2014 4:41 am

What's the difference between the different water "versions"? I did some experimenting and found that if I spawn water set to version 1, then it acts like normal Algodoo water. But if I set the version to 0 (zero) then the water acts like it has a high restitution value (I know that water does not have a restitution value, but I'm just saying that it acts that way) and the individual water "splashes" will bounce off of each other like crazy. If you spawn a lot of them and confine them to a small space, they look sort of like radioactivity! So, what's going on here?
User avatar
Xray
 
Posts: 500
Joined: Sun Jun 17, 2012 6:12 am
Location: USA

Re: OnCollide Water Spawning...

Postby electronicboy » Sat Mar 29, 2014 5:54 pm

It was a change in the physics system, the SPH. values will change the old phun versions, which messed up with the newer water calculations and causes the bouncing water.
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 5 guests