Crazed waters

For topics that don't fit under the other topics or forums.

Crazed waters

Postby FRA32 » Wed Nov 18, 2015 9:00 pm

I wanted to make a scene to simulate how oil is obtained and refined, but when I tried to spawn water using scene.addWater, an old glitch I already know occured: The whole water in all the scene started to craze out as if it had restitution > 1. It basically flew around everywhere like rubber balls, and I found no way to stop this. When I use a new scene, everythings fine, but the moment I insert my stuff, it crazes out again. Does anyone know a solution?
FRA32
 
Posts: 229
Joined: Wed Dec 03, 2014 9:51 pm

Re: Crazed waters

Postby T'wind_ » Wed Nov 18, 2015 9:50 pm

You can make the water be steady again by using the command SetNewSPH.
Code: Select all
scene.addWater({});
SetNewSPH;
User avatar
T'wind_
 
Posts: 86
Joined: Wed Jul 08, 2015 5:33 pm
Location: Western Europe

Re: Crazed waters

Postby FRA32 » Thu Nov 19, 2015 5:43 pm

Nope, if I do scene.addWater({vecs := [e.this.pos]}); SetNewSPH; it will keep flying around like crazy.
FRA32
 
Posts: 229
Joined: Wed Dec 03, 2014 9:51 pm

Re: Crazed waters

Postby electronicboy » Thu Nov 19, 2015 8:56 pm

open the console using the key below F1, or F10 (something around there) I think it is, and run:
sph.setNewSPH
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: Crazed waters

Postby T'wind_ » Thu Nov 19, 2015 10:14 pm

I forgot to type SPH. in front of it.
Code: Select all
scene.addWater({});
SPH.SetNewSPH;
User avatar
T'wind_
 
Posts: 86
Joined: Wed Jul 08, 2015 5:33 pm
Location: Western Europe

Re: Crazed waters

Postby FRA32 » Fri Nov 20, 2015 6:08 pm

Okay now it works. Thanks :D

btw. is it possible to change the position of a water particle or at least cause deletion of it using OnCollide?
FRA32
 
Posts: 229
Joined: Wed Dec 03, 2014 9:51 pm

Re: Crazed waters

Postby T'wind_ » Fri Nov 20, 2015 7:29 pm

I think it's not possible, but you can destroy the water with a killer.
User avatar
T'wind_
 
Posts: 86
Joined: Wed Jul 08, 2015 5:33 pm
Location: Western Europe

Re: Crazed waters

Postby FRA32 » Fri Nov 20, 2015 9:34 pm

Well Killers dont use OnCollide, since the objects die before the event triggers :(
FRA32
 
Posts: 229
Joined: Wed Dec 03, 2014 9:51 pm


Return to Algodoo in general

Who is online

Users browsing this forum: No registered users and 3 guests

cron