PhysicsEquivalents

Package: Libraries.Interface.Controls.Scenes.Dialogs · Inherits from: Libraries.Language.Object

The PhysicsEquivalents class describes an item's mass, friction and restitution in everyday terms, such as "Roughly a house cat" or "Roughly ice on ice", for the lines under the physics sliders in the properties panels. The descriptions are rough, from published values: Mass: a tennis ball, 56 to 59.4 g (ITF); a size 7 basketball, 567 to 624 g; a healthy adult house cat, about 3.6 to 5.4 kg; a bowling ball, at most 7.26 kg; an adult person, 62 kg on average worldwide (Walpole et al., 2012); an upright piano, about 194 to 302 kg (Yamaha, Steinway); a car, about 1,400 to 1,900 kg; an African bush elephant, about 2,600 to 6,900 kg. Each description covers the masses nearer to it than to its neighbors on a logarithmic scale. Friction, the coefficient between two surfaces: ice on ice, about 0.02 to 0.1; Teflon on Teflon, about 0.04; waxed wood on wet snow, 0.1 to 0.14; wood on wood, 0.2 to 0.5; shoes on wood, 0.7 to 0.9; rubber on dry concrete, 0.6 to 1.0. Two items' frictions are combined before this applies: in 2D as the square root of their product, in 3D as their product, at most 10. A description assumes both items have the value. Restitution, how much of its speed a ball keeps in a bounce: a golf ball, about 0.67 to 0.68; a tennis ball, about 0.73 to 0.76 (from the ITF's rebound test); a basketball, about 0.73 to 0.80 (from FIBA's); a table tennis ball, about 0.89 to 0.92 (from the ITTF's); a super ball, about 0.8 to 0.92. Two items bounce with the larger of their values, so a description is of the item bouncing off something less bouncy.

Actions

DescribeFriction(number friction, boolean threeD)

This action describes an item's friction as two surfaces with about the same grip, when both touching items have this value.

Parameters

  • friction number: The item's friction.
  • threeD boolean: True for a 3D item, false for a 2D one.

Returns

text: The description, such as "Roughly wood on wood".

DescribeMass(number mass)

This action describes a mass, in kilograms, as something about as heavy.

Parameters

  • mass number: The mass, in kilograms.

Returns

text: The description, such as "Roughly a house cat".

DescribeRestitution(number restitution)

This action describes an item's restitution as a ball that bounces about as much, when the item hits something less bouncy.

Parameters

  • restitution number: The item's restitution.

Returns

text: The description, such as "Roughly a golf ball on a hard floor".

Inherited Actions

3 actions from Libraries.Language.Object