Crazed waters
8 posts • Page 1 of 1
Crazed waters
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
You can make the water be steady again by using the command SetNewSPH.
- Code: Select all
scene.addWater({});
SetNewSPH;
-
T'wind_ - Posts: 86
- Joined: Wed Jul 08, 2015 5:33 pm
- Location: Western Europe
Re: Crazed waters
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
open the console using the key below F1, or F10 (something around there) I think it is, and run:
sph.setNewSPH
sph.setNewSPH
When asking for help, READ THE STICKIES!
- electronicboy
- Posts: 1694
- Joined: Mon Aug 31, 2009 6:18 pm
Re: Crazed waters
I forgot to type SPH. in front of it.
- Code: Select all
scene.addWater({});
SPH.SetNewSPH;
-
T'wind_ - Posts: 86
- Joined: Wed Jul 08, 2015 5:33 pm
- Location: Western Europe
Re: Crazed waters
Okay now it works. Thanks
btw. is it possible to change the position of a water particle or at least cause deletion of it using OnCollide?
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
I think it's not possible, but you can destroy the water with a killer.
-
T'wind_ - Posts: 86
- Joined: Wed Jul 08, 2015 5:33 pm
- Location: Western Europe
Re: Crazed waters
Well Killers dont use OnCollide, since the objects die before the event triggers
- FRA32
- Posts: 229
- Joined: Wed Dec 03, 2014 9:51 pm
8 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests