Water Gravity script

About advanced scenes, and the Thyme scripting language used in Algodoo.

Water Gravity script

Postby jordan30001 » Mon Aug 16, 2010 4:10 pm

e.other.gravity = 0.0001 makes items float
how do you make water's gravity float?

thanks in advance
jordan30001
 
Posts: 11
Joined: Mon Aug 16, 2010 4:03 pm

Re: Water Gravity script

Postby Matten » Mon Aug 16, 2010 6:15 pm

?
e.other.gravity?
Never heard of it, or do you use Phun?
Anyway, in Algodoo you can use e.other.density = *value lower then 0.01*, but since splashes of water can't have different options, you need to use something like SPH.density = *value lower then 0.01*.

PS: You can change the density of air, so if you've done that you need another value then 0.01.
Cave Johnson wrote:Do you know who I am? I'm the man who's gonna burn your house down! With the lemons! I'm gonna get my engineers to invent a combustible lemon that burns your house down!
User avatar
Matten
 
Posts: 435
Joined: Mon Apr 05, 2010 2:03 pm
Location: The Netherlands

Re: Water Gravity script

Postby jordan30001 » Mon Aug 16, 2010 6:49 pm

sorry i ment e.other.density i was just thinking of gravity lol ill try it now
jordan30001
 
Posts: 11
Joined: Mon Aug 16, 2010 4:03 pm

Re: Water Gravity script

Postby jordan30001 » Mon Aug 16, 2010 6:53 pm

no water still doesnt float and im using no air friction and 0.0001
jordan30001
 
Posts: 11
Joined: Mon Aug 16, 2010 4:03 pm

Re: Water Gravity script

Postby Matten » Mon Aug 16, 2010 9:26 pm

You can search in the config file in My Documents to something like SPH.density or SPH.weigth.
Otherwise you can try to find something like sim.airWeigth or scene.airDensity (and everything that looks like it) and change it to something higher then 1.0. Be carefull, because with this you change the weigth of the air, so objects that are made ligther then the number you've chosen will float too.
Cave Johnson wrote:Do you know who I am? I'm the man who's gonna burn your house down! With the lemons! I'm gonna get my engineers to invent a combustible lemon that burns your house down!
User avatar
Matten
 
Posts: 435
Joined: Mon Apr 05, 2010 2:03 pm
Location: The Netherlands


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 8 guests