Change power used in attraction

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

Change power used in attraction

Postby gcarbonetti » Wed May 03, 2017 10:47 pm

Hello.
I've tried to model some things in algodoo, but I got stuck with a difficulty envolving attraction.
The only two options for attraction settings are "linear" and "quadratic", in which the force decays with the distance and distance^2, respectively.
Is there any way in which I could set the power to any number different than 1 or 2?
For example, I'd like to have my attraction constant decaying to the power of 6, is it possible? Where can I check the variables to change this kind of information? I tried looking in the console, but without knowing the variable to look for, it's almost impossible.

Thanks a lot!
gcarbonetti
 
Posts: 1
Joined: Wed May 03, 2017 10:43 pm

Re: Change power used in attraction

Postby FRA32 » Tue May 09, 2017 4:13 pm

Try checking the Script menu and changing AttractionType to 6. I don't know if algodoo actually computes with the 6th power then, but at least that's the variable that stores the power.
FRA32
 
Posts: 229
Joined: Wed Dec 03, 2014 9:51 pm


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 3 guests