Sunday, June 28, 2026

How to make pentad model? (article by mono)

 


 

 

First, on the simulator screen, draw a rough shape of two connected concentric circles. 

The total number of masses (nodes) must be exactly 50. 

 Open your favorite text editor. 

Press [Ctrl] + [C] on the simulator screen, then press [Ctrl] + [V] in the text editor to paste the model data. 

Modify the beginning of the data as follows: 

 

<environment gravity="0" friction="0.051771318689445726" springyness="576.9543672805263"/> <collisions surface_friction="0.1" surface_reflection="-0.75"/> <wave amplitude="0.15" phase="0.64034754" speed="1.599363952370385"/> Next, add the following section toward the bottom of the data to configure the Springs: <links> <spring a="m0" b="m1" restlength="0"/> <spring a="m1" b="m2" restlength="0"/> <spring a="m2" b="m3" restlength="0"/> <spring a="m3" b="m4" restlength="0"/> <spring a="m4" b="m5" restlength="0"/> <spring a="m5" b="m6" restlength="0"/> <spring a="m6" b="m7" restlength="0"/> <spring a="m7" b="m8" restlength="0"/> <spring a="m8" b="m9" restlength="0"/> <spring a="m9" b="m10" restlength="0"/> <spring a="m10" b="m11" restlength="0"/> ...[snip]... <spring a="m40" b="m41" restlength="0"/> <spring a="m41" b="m42" restlength="0"/> <spring a="m42" b="m43" restlength="0"/> <spring a="m43" b="m44" restlength="0"/> <spring a="m44" b="m45" restlength="0"/> <spring a="m45" b="m46" restlength="0"/> <spring a="m46" b="m47" restlength="0"/> <spring a="m47" b="m48" restlength="0"/> <spring a="m48" b="m49" restlength="0"/> <spring a="m49" b="m0" restlength="0"/> 

 

Then, add the following items right below the springs to configure the Muscles (hang in there!): 

 <muscle a="m0" b="m2" restlength="40" amplitude="1.00000" phase="0"/> <muscle a="m1" b="m3" restlength="40" amplitude="1.00000" phase="0.1"/> <muscle a="m2" b="m4" restlength="40" amplitude="1.00000" phase="0.2"/> <muscle a="m3" b="m5" restlength="40" amplitude="1.00000" phase="0.3"/> <muscle a="m4" b="m6" restlength="40" amplitude="1.00000" phase="0.4"/> <muscle a="m5" b="m7" restlength="40" amplitude="1.00000" phase="0.5"/> <muscle a="m6" b="m8" restlength="40" amplitude="1.00000" phase="0.6"/> <muscle a="m7" b="m9" restlength="40" amplitude="1.00000" phase="0.7"/> <muscle a="m8" b="m10" restlength="40" amplitude="1.00000" phase="0.8"/> <muscle a="m9" b="m11" restlength="40" amplitude="1.00000" phase="0.9"/> <muscle a="m10" b="m12" restlength="40" amplitude="1.00000" phase="0"/> ...[snip]... <muscle a="m40" b="m42" restlength="40" amplitude="1.00000" phase="0"/> <muscle a="m41" b="m43" restlength="40" amplitude="1.00000" phase="0.1"/> <muscle a="m42" b="m44" restlength="40" amplitude="1.00000" phase="0.2"/> <muscle a="m43" b="m45" restlength="40" amplitude="1.00000" phase="0.3"/> <muscle a="m44" b="m46" restlength="40" amplitude="1.00000" phase="0.4"/> <muscle a="m45" b="m47" restlength="40" amplitude="1.00000" phase="0.5"/> <muscle a="m46" b="m48" restlength="40" amplitude="1.00000" phase="0.6"/> <muscle a="m47" b="m49" restlength="40" amplitude="1.00000" phase="0.7"/> <muscle a="m48" b="m0" restlength="40" amplitude="1.00000" phase="0.8"/> <muscle a="m49" b="m1" restlength="40" amplitude="1.00000" phase="0.9"/> </links> 

 And you're done! 

Double-check that the header of your data looks like this: 

 <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>  <!DOCTYPE sodaconstructor> <model> <comment></comment> <container width="651" height="422"/> <environment gravity="0" friction="0.051771318689445726" springyness="576.9543672805263"/> <collisions surface_friction="0.1" surface_reflection="-0.75"/> <wave amplitude="0.15" phase="0.64034754" speed="1.599363952370385"/> <settings gravitydirection="down" wavedirection="noreverse" autoreverse="on"/> <nodes> <mass id="m0" x="235.98798" y="56.22742" vx="-3.40967" vy="4.40426" fix="0"/> And ensure the footer looks like this: <muscle a="m49" b="m1" restlength="40" amplitude="1.00000" phase="0.9"/> </links> </model> 

Once everything looks correct, click [clear all] in the upper-right corner of the simulator screen. 

Select all text in your text editor and press [Ctrl] + [C]. 

Go back to the simulator screen, press [Ctrl] + [V], and then click [play simulation]. It should now run perfectly!

(by mono) 

No comments:

Post a Comment

Soda Constructor (Revisited)