density
Details
Kode wheel segment | Physics |
Style | Number Variable |
Modifiers | None |
Primarily WHEN/DO | Both |
Pre-made brains that use it | Unknown |
Physics > density
Description
This tile allows you to set or query the density of an object. Density is the mass of an object divided by its volume. In the real world you can see that an object of one material is heavier than another even though it is the same size (a block of tin and a block of lead). The density of an object will affect whether it floats or sinks in water, and how it is affected by friction when pushed or collided with. Objects with a density higher than 1 will sink in water. Changing the density of an object will also affect its mass, so that the formula matches.
d = m/v
In my experiment with a signpost.
0.497 = 109 / v
2 = 438.587 /v
The mass increased from 109 to 438 because I changed the density from 0.497 to 2. Changing the mass of an object does not affect the density in the same way.
Example Code
WHEN [once] DO [density][=][2]
Modifiers
None