Transformice Wiki
m (dat nowiki)
Tag: sourceedit
m (missed a tag)
Tag: sourceedit
 
Line 31: Line 31:
 
<pre>
 
<pre>
 
<S L="150" H="10" X="270" Y="100" T="0" P="0,0,0,0,0,0,0,0" />
 
<S L="150" H="10" X="270" Y="100" T="0" P="0,0,0,0,0,0,0,0" />
  +
</pre>
A platform for the objects to stand on
+
A platform for the objects to stand on.
   
  +
<pre>
 
<S P="1,0,0.8,0.2,0,0,0,0" L="**" X="300" N="" Y="40" T="0" H="**" />
 
<S P="1,0,0.8,0.2,0,0,0,0" L="**" X="300" N="" Y="40" T="0" H="**" />
 
<O C="++" Y="50" X="232" P="0" />
 
<O C="++" Y="50" X="232" P="0" />

Latest revision as of 05:54, 17 May 2015

Whole code:

<C><P /><Z><S>
<S L="150" H="10" X="270" Y="100" T="0" P="0,0,0,0,0,0,0,0" />
<S P="1,0,0.8,0.2,0,0,0,0" L="30" X="300" N="" Y="40" T="0" H="30" />

<S L="300" X="250" H="10" Y="360" T="1" P="0,0,0.1,0,0,0,0,0" />
<S L="300" H="10" X="250" Y="220" T="1" P="0,0,0.1,0,0,0,0,0" />
<S L="10" X="40" H="200" Y="290" T="1" P="0,0,0,0,135,0,0,0" />
<S L="10" X="40" H="200" Y="150" T="1" P="0,0,0,0,135,0,0,0" />

<S P="1,0,0.8,0.2,0,0,0,0" L="30" X="-15" N="" Y="203" T="0" H="30" />

<S L="200" H="10" X="500" Y="400" T="2" P="0,0,0,0.7,0,0,0,0" />

<S L="200" H="10" X="700" Y="160" T="0" P="0,0,0.3,0.2,0,0,0,0" />
<S L="200" H="10" X="700" Y="100" T="0" P="1,0,0.3,0.2,0,0,0,0" />
<S L="10" H="50" X="700" Y="130" T="0" P="0,0,0.3,0.2,0,0,0,0" />

<S L="20" X="370" H="10" Y="60" T="0" P="0,0,0.3,0.2,0,0,0,0" />
</S>
<D><DS Y="45" X="375" /></D>
<O>
<O C="39" Y="68" X="-15" P="0" />
<O C="61" Y="50" X="232" P="0" />
</O></Z></C>

Breakdown:

Size

<S L="150" H="10" X="270" Y="100" T="0" P="0,0,0,0,0,0,0,0" />

A platform for the objects to stand on.

<S P="1,0,0.8,0.2,0,0,0,0" L="**" X="300" N="" Y="40" T="0" H="**" />
<O C="++" Y="50" X="232" P="0" />

Turn on debug mode in map editor, change the ++ to Object ID

Change ** until the size match, use image editor zoom in if you are unsure.


Friction

<S L="300" X="250" H="10" Y="360" T="1" P="0,0,X,0.2,0,0,0,0" />
<S L="300" H="10" X="250" Y="220" T="1" P="0,0,X,0.2,0,0,0,0" />
<S L="10" X="40" H="200" Y="290 [1]" T="1" P="0,0,0,0.2,135,0,0,0" />
<S L="10" X="40" H="200" Y="150 [2]" T="1" P="0,0,0,0.2,135,0,0,0" />

Basically a simple slider, You can edit the X from 0.01 to 1, depending on whether you can measure the difference (0.01 for high friction object, I suggest 0.2 for most object), you then put the object with:

  • For the dynamic ground, which you should edit:
<S P="1,0,0.8,0.2,0,0,0,0" L="30" X="-15" N="" Y="203" T="0" H="30" />
  • For the object you are trying to clone using dynamic ground:
<O>
<O C="39" Y="68" X="-15" P="0" />
</O>

Notes

  • The X value of dynamic ground and object must be the same.
  • The difference of the dynamic ground to Y [1] and object to Y [2] must be the same.
  • It is recommended for the dynamic ground & object to touch their respective ground, to prevent restitution causing inaccuracy.

If the object stops at the same spot horizontally, then the friction is the same.


Restitution

<S L="200" H="10" X="500" Y="400" T="2" P="0,0,0,0.7,0,0,0,0" />

This one is still hard to test. Basically, if they bounce back with same max height, the restitution is same.

Notes

  • Both object and dynamic ground value must be the same.

Mass

<S L="200" H="10" X="700" Y="160" T="0" P="0,0,0.3,0.2,0,0,0,0" />
<S L="200" H="10" X="700" Y="100" T="0" P="1,0,0.3,0.2,0,0,0,0" />
<S L="10" H="50" X="700[1]" Y="130" T="0" P="0,0,0.3,0.2,0,0,0,0" />

A seesaw.

Notes

  • The object Y value must be the same.
  • The object size must be the same.
  • The difference of both object to X[1] must be the same.
  • Probably not super accurate.

Other

<S L="20" X="370" H="10" Y="60" T="0" P="0,0,0.3,0.2,0,0,0,0" />
<D><DS Y="45" X="375" /></D>

A place for your mouse to stand on :P


That's it, I need recommendation for Mass, better Restitution measurement, and Density measurement somehow.