Changing SPH Settings
6 posts • Page 1 of 1
Changing SPH Settings
To change then type in the code into the console
Defaults for SPH
Defaults for SPH
- SPH.density = 1
- SPH.friction = 0.01
- SPH.influence = 2
- SPH.radius = 0.05
- SPH.restitution = 0
- SPH.specialPressure = true
- SPH.vaporizeTime = 5
- SPH.viscosity = 0.5
<- Designed by PhysicsGuy
-
xplane80 - Posts: 498
- Joined: Mon Aug 31, 2009 7:28 pm
Re: Changing SPH Settings
For those of you who don't know, the console is brought down by pressing the tilde key "~".
-
Fujitsu - Posts: 328
- Joined: Tue Sep 01, 2009 12:28 am
- Location: Canada
Re: Changing SPH Settings
Is there a way to change SPH.SetNewSPH or SPH.SetClassicSPH using oncollide/onLaserhit?
Newbie Thymer
Intermediate Phuner
Intermediate Phuner
- Cs24
- Posts: 41
- Joined: Tue Nov 03, 2009 5:30 am
Re: Changing SPH Settings
Is this what you mean?
- Code: Select all
(e)=>{SPH.SetNewSPH}
-
standardtoaster - Posts: 606
- Joined: Mon Aug 31, 2009 7:57 pm
Re: Changing SPH Settings
Cs24 wrote:Is there a way to change SPH.SetNewSPH or SPH.SetClassicSPH using oncollide/onLaserhit?
Yes, there is. But if you do it don't upload the scene to algobox or the angry ghosts of people which downloaded it will haunt you.
No, seriously. When changing SPH values or other important values via laser, onCollide etc. you'll screw up the config file of people which downloaded the scene.
Changing SPH.SetNewSPH and SPH.SetClassicSPH won't be fatal. It just turns "incompressible fluids" on/off but for other settings it can be the case.
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: Changing SPH Settings
funny 'cause
wasn't working yesterday, now it does (needed it for my water soft-body car, which needs ClassicSPH)
and yes I know how people (see n00bs) have spasms when something "screws over" like the hide GUI in this scene
at least there are some (see newbie) who ask for help instead of 1 spamming.
EDIT: What's the code that sets self-delete of a "drop" of water (when isolated)?
- Code: Select all
(e)=>{SPH.SetNewSPH}
wasn't working yesterday, now it does (needed it for my water soft-body car, which needs ClassicSPH)
and yes I know how people (see n00bs) have spasms when something "screws over" like the hide GUI in this scene
at least there are some (see newbie) who ask for help instead of 1 spamming.
EDIT: What's the code that sets self-delete of a "drop" of water (when isolated)?
Newbie Thymer
Intermediate Phuner
Intermediate Phuner
- Cs24
- Posts: 41
- Joined: Tue Nov 03, 2009 5:30 am
6 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest