Stage Builder: Difference between revisions

m
→‎Terrain material: trying to make this a little less intimidating
No edit summary
Tag: Mobile edit
m (→‎Terrain material: trying to make this a little less intimidating)
Line 269: Line 269:
Each material has various physics attributes affecting how it interacts with other objects with gravity enabled. The attributes only affect the terrain's interaction with objects, not fighters. In the following table, the physics attributes are defined as:
Each material has various physics attributes affecting how it interacts with other objects with gravity enabled. The attributes only affect the terrain's interaction with objects, not fighters. In the following table, the physics attributes are defined as:
;Gravity
;Gravity
:Acceleration downwards. Value is multiplied by 0.065. When multiple materials are part of the same object, the gravity of that object is based on the proportion that each material makes of that object, factoring in density and size. For example, an object made of paper with 16 grid tiles and steel with 4 grid tiles will have a combined density of 560 (<code>(16×10)+(4×100)=160+400</code>). Paper, with a gravity of 0.3, contributes 0.0<span style="text-decoration:overline;>857142</span> (<code>0.3×(160/560)=0.3×0.<span style="text-decoration:overline;>285714</span></code>) and steel, with a gravity of 1.0, contributes 0.<span style="text-decoration:overline;>714285</span> (<code>1.0×(400/560)=1.0×0.<span style="text-decoration:overline;>714285</span></code>), resulting in a gravity of 0.8. This can be simplified and generalized to the following <code>(a_1×d_1×g_1 + a_2×d_2×g_2 +...+ a_n×d_n×g_n)/(a_1×d_1 + a_2×d_2 +...+ a_n×d_n)</code>, where '''a''' is the area of the material occupies, '''d''' is the material's density, and '''g''' is the material's gravity.
:Acceleration downwards. Value is multiplied by 0.065. When multiple materials are part of the same object, the gravity of that object is based on the proportion that each material makes of that object, factoring in density and size.
::For example, an object made of paper with 16 grid tiles and steel with 4 grid tiles will have a combined density of 560 (<code>(16×10)+(4×100)=160+400</code>). Paper (with a gravity of 0.3) contributes 0.0<span style="text-decoration:overline;>857142</span> (<code>0.3×(160/560)=0.3×0.<span style="text-decoration:overline;>285714</span></code>) and steel (with a gravity of 1.0) contributes 0.<span style="text-decoration:overline;>714285</span> (<code>1.0×(400/560)=1.0×0.<span style="text-decoration:overline;>714285</span></code>), resulting in a gravity of 0.8. This can be simplified and generalized to the following <code>(a_1×d_1×g_1 + a_2×d_2×g_2 +...+ a_n×d_n×g_n)/(a_1×d_1 + a_2×d_2 +...+ a_n×d_n)</code>, where '''a''' is the area of the material occupies, '''d''' is the material's density, and '''g''' is the material's gravity.
;Density
;Density
:Mass per unit volume.
:Mass per unit volume.
30,325

edits